Like 50% of SpaceXs initial development came from tax payer money.
The government was a customer. That’s very different from the government giving a research grant.
That’s like saying 25% of Exxon’s development came from tax payer money because the government uses a shitload of oil.
A good investment by Uncle Sam, it's saved them quite a bit since.