# he walked in the ways of the kings of Israel
"he acted the same way that the kings of Israel had acted" or "he did the things that the kings of Israel had done"
# he also made cast metal figures for the Baals
"he even made cast metal figures for worshiping the Baals".