One afternoon in January, President Trump sent the stocks of the military-industrial complex stumbling when he complained that defense contractors were paying dividends too generously, buying back their own stock too aggressively, and compensating executives too lavishly.