The UK helped metals tycoon Sanjeev Gupta save the country’s last smelter. It was a lucrative deal.