This is an idiom that means he followed their example. See how you translated this in [2 Chronicles 20:32](../20/32.md). Alternate translation: "followed the example" (See: [[rc://en/ta/man/translate/figs-idiom]])
The word "house" is a metonym for the family that lives in the house. In this case it refers to the descendants of Ahab. Alternate translation: "the descendants of Ahab were doing" (See: [[rc://en/ta/man/translate/figs-metonymy]])