Poorly devised regulation lets firms pollute with abandon