> do you mean "the government has given money to SpaceX for which it receives no specific benefit"?
That was a potential outcome, yes. The Commercial Crew/Cargo programs paid out in milestones; as Boeing has demonstrated with Starliner, those payments don't depend on a completed product.
That SpaceX was successful is great, and a successful example of why we subsidize risky ventures.
As a more recent example, SpaceX gets paid for the in-development HLS, $2.9B so far for something that does not yet exist. https://www.usaspending.gov/award/CONT_AWD_80MSFC20C0034_800...
They get to keep it if the project fails or is canceled; we may not get anything out of it. But I'm inclined to consider it a good investment.
> They get to keep it if the project fails or is canceled
I don't think milestone payments which you keep even if the project gets cancelled count as a "subsidy".
The same thing happens in the private sector – if a big company hires a contractor to work on a project, and then decides to cancel the project, the contractor usually gets to keep the payment for the work they performed, even though it turned out to be pointless in the long-run – but who would call that a "subsidy"?