European Union leaders formally agreed a Brexit deal on Sunday and urged Britons to back Prime Minister Theresa May’s package in the face of furious opposition in the British parliament.