I think investing in space exploration improves some people's ability to face climate change on our planet. It's hard to see a scenario where everyone in the world would benefit from it, given the incredible advancement of private space flight. Don't get me wrong, it's amazing what those companies have been able to accomplish. But we can't pretend like the entirety of humanity benefits from it when access to that kind of technology is restricted to those with obscene amounts of wealth.
You could make that argument about any new technology over the last couple hundred years, and it would prove to be a vacuous argument. A rising tide lifts all boats.