Unlike workers working for a company that explicitly had "don't be evil" as a motto, withdrew from the Chinese market after state-sponsored attacks targeted dissident's accounts, and that had very little previously known/discussed military involvement, nor activity in a typically highly military-related field.
SpaceX is taking defense money to launch satellites that are primarily for military use in guiding platforms that deliver things to lethal terminal effect. That's just as martial as Raytheon building the Tomahawk guidance module.
Thought experiment: would SpaceX take Russian money to launch GLONASS birds? I'd wager not because it would be 'immoral'.
Sort of like the US interstate highway system. Military use got the budget to build it, secondary use ends up being more important.
I would not want to work on a weapons system but I’d have no problem working on something like GPS.
I see no evidence for the conclusion to your thought experiment. You can’t just make up a conclusion to support your argument, it needs to actually be based on something.
Even if there's no novel or unusual technology on the Glonass sat, learning that is intelligence in itself.
Edit: just to expand on this a bit, SpaceX is and always has been a US federal government contractor. If you have a problem with that as a potential hire you probably do not take that job. But if the US government doesn't have a problem with a launch, SpaceX is also a money-making enterprise and I would bet they'd take whatever launches people would pay them for.
And not to mention the very existence of computer, CPU, internet and pretty much a lot of modern technology we take granted for were conceived, developed, refined with funding from various governments paying for them, because they involved in active/inactive wars, including US, UK, Russia etc.