I'm not opposing what you're saying but I feel like the distribution is somewhat:
80% - Science and its marvels
15% - Humanity survival (IMHO not possible)
5% - So we know more and more and somehow fix problems where that knowledge may be applicable (is that what you're calling moral value)?
I do think that we should be better off spending money elsewhere. I don't know why Trump is so pro-space travel and stuff.