Andy Burnham's deal represents the biggest shift in Britain's relationship with the EU since Brexit.