Public will be at risk if Labour drops £28bn green plan, warns fire union chief