Thousands of ‘red wall’ jobs at risk without green investment, TUC warns PM