The government says it closed a unit aimed at helping fossil fuel workers into new jobs, because the programme did not align with its priorities.