Honestly this depends. If we have 1000 billion going into health research, but 1 billion doing into space research, I think there's an open question on how much good an extra 0.1% of health research will do compared to doubling space research.
In absolute terms instead of relative, I would prefer a billion on most space based research than a billion going to study male pattern baldness.
More so when it's not obvious.
The size and shape of the Hubble is directly influenced by those satellites, and in particular the surprisingly cheap main mirror optics provided you built a mirror of exactly a particular size that it would turn out there was a very experienced and equipped facility in the US for building.
"Secret History of Silicon Valley" https://www.youtube.com/watch?v=ZTC_RxWN_xo
I imagine a lot of space development is similar. The real reason for the huge investment is for defence applications, but it is more acceptable to justify it by the scientific ‘value’ of the projects.
If you asked someone if they wanted $1billion to go to health research or space research the answer would be obvious.