There's a lot to criticize, but this argument seems extremely misleading to me. The government wants to put things into space. SpaceX says "this is how much we're willing to take to do so" and bids on the government contract to do so. Notably, this is drastically cheaper launch pricing than the Space Shuttle and whatever other venues NASA had. These weren't R&D grants which are more arguable.