Britain and the European Union have reached new agreements and a rapprochement to redraw relations after years following Brexit.