"what was evil in Yahweh's judgment" or "what Yahweh considered to be evil"
This is the plural of Baal, which is used for various other gods that were often worshiped along with Baal.