I do think we need to make the US a place where builders can build, but I disagree with this justification pretty strongly. This isn't a public organization working for the public good, it's a private company doing R&D to create a spacecraft that they will own and control.
We're also, at least in the legal sense, not at war.
Private companies can have strategic value, too. The capabilities of SpaceX is what puts the entire US on the top of the current space technology race.
Imagine having to beg the Russians to get the two stranded astronauts back to Earth.
It's a defense contractor with a track record of delivering things to USGov no one else is capable of (Starlink/Starshield). They're not a public service—but they do work for the US.
SpaceX is private, however this whole Starship program has NASA (public organization) funding parts of Starship's development for lunar exploration, as part of the Artemis program