European Union leaders have agreed to extend the deadline for the UK’s Brexit until October 31, 2019, with a checkup of progress due in June.