Thousands of jobs are at risk if the government backtracks on its £6.6bn pledge to make British homes more energy-efficient. Ministers are considering.