EU threatens legal action over UK's law-breaking bill