The UK and EU reached a deal on trade, carbon emissions, and youth movement after a summit in Brussels on Friday.