EU and UK strike Brexit deal on Northern Ireland