It is implied that he built these altars so people could make sacrifices and worship the stars. Also, he would not have built these altars himself, rather he would have commanded his workers to do it. AT: "He had his workers build altars in the two courtyards of the house of Yahweh so that the people could worship the stars and offer them sacrifices" (See: [[rc://en/ta/man/translate/figs-explicit]] and [[rc://en/ta/man/translate/figs-metonymy]])
You may need to make explicit why he caused his son be put into the fire and what happened after he did so. AT: "He burned his son to death as an offering to his gods" (See: [[rc://en/ta/man/translate/figs-explicit]])
The sight of Yahweh represents Yahweh's judgment or evaluation. See how you translated a similar phrase in [2 Kings 3:2](../03/01.md). AT: "many things that were evil in Yahweh's judgment" or "many things that Yahweh considers to be evil" (See: [[rc://en/ta/man/translate/figs-metaphor]])