EU threatens legal action after UK unveils controversial law to override Northern Ireland Protocol