The European Union is to launch legal action against the UK, after the British government unilaterally delayed parts of the new Brexit arrangements for Northern Ireland.