On the order of 100-200 trillion USD. Which is roughly 100-200% of global yearly GDP. Or 2-5% of yearly GDP until 2050. This could well be provided by printing money at all the federal reserve banks.
This investment will likely bring in a positive return on investment because it reduces the negative climate impacts.
Without such investments the downstream costs in climate change adaptation will be very expensive