Rio Tinto has secured a $2 billion taxpayer handout to keep Australia's second-largest aluminium smelter running in a bid to save 3000 jobs.