Here their "ancestor's houses" means their "ancestor's households." This is a metonym for their "clans." AT: "by their clans" (See: [[rc://en/ta/man/translate/figs-metonymy]])
# following the word of Yahweh, just as he was commanded to do
These two phrases mean basically the same thing and are used together to emphasize that he obeyed Yahweh. (See: [[rc://en/ta/man/translate/figs-parallelism]])