Just because he acts like a total tool does not arbitrarily make SpaceX not a viable defense contractor. Why can people not separate Musk the (very abrasive) person from his companies?
The leverage isn't just shutting down the China market, it's the threat to 51% of Tesla's production capacity.