Here "heads" is a metaphor for the most important part, and "houses" represents families. Alternate translation: "leaders of the ancient families" (See: [[rc://en/ta/man/translate/figs-metaphor]] and [[rc://en/ta/man/translate/figs-metonymy]])
The abstract noun "judgment" can be translated using the verb "to judge." Alternate translation: "for judging the people for Yahweh" or "for judging on Yahweh's behalf" (See: [[rc://en/ta/man/translate/figs-abstractnouns]])