It's not a market failure, it's a governmental failure, for this reason: if you spew poison into the atmosphere (it was known long before then that lead was poisonous), you should be expected to have to pay for the damages caused. But these companies knew they could get away with it with impunity, and they did. So, it was a governmental failure in the first place, and failure was piled on failure by not addressing the root cause and by increasing the cost of doing business for everyone just because some criminal company notices that the government won't actually punish them.