While the USA puts lots of money into space projects, it also invest in cheap labor from other countries. There are poor countries that could never afford to pay for a space project but, in the other hand, if they weren't there, USA (and many other countries) would not be what they are today.