The EU and the UK have agreed on what their post-Brexit relationship will look like