US government is not actually allied to the Ukraine as far as I know.
And not allowing your consumer electronics devices and sat systems to be used as offensive weapons (something the system wasn't designed for) is pretty reasonable for any company to do. One can have different feeling about this, but the idea that the US military would blacklist SpaceX over this is not really reasonable.
> Without government charity, Elon Musk has nothing.
This is often claimed but if you actually look into it it isn't actually true for Tesla.
SpaceX might have gone bust without NASA contracts but those were difficult high risk contracts that required performance based milestones to actually receive money. They were certainty not charity. In fact, SpaceX almost certainty lost money on those early contracts like CRS.
The reality is those companies had to compete against competitors who had way more support form government.