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'.