MG Rover is close to agreeing a £1 billion deal with Shanghai Automotive Corporation that will produce cars for the fast-growing Chinese market and help secure the future of the giant Longbridge plant in Birmingham.