The Albanese government has announced a bailout package for a major Australian smelter with green strings attached.