Chinese cars are set to be built in Britain for the first time after Nissan struck a deal to use its Sunderland plant with rival Chery.