Chancellor Rachel Reeves has announced she will divert cash from environmental investments to help Ukraine instead.