Leading people to do something represents influencing them to do it. Alternate translation: "they had influenced Israel to sin" (See: [[rc://en/ta/man/translate/figs-metaphor]])
God became angry with the people because they worshiped idols. The meaning of this can be made clear. Alternate translation: "they made Yahweh, the God of Israel, angry because they worshiped idols" (See: [[rc://en/ta/man/translate/figs-explicit]])