The UK and the EU have reached an agreement on Northern Ireland