That said, I don't think this law has anything to do with war, just simple economic protectionism driven by Skydio and other US drone lobbyists. Getting rid of DJI's excellent $7,000 enterprise drones lets Skydio sell their $15,000 + cloud-subscription enterprise drones instead.
As others point out, DJI can't control what buyers do (a good default).
Perhaps it would be more accurate to say DJI won't manufacture drones for offensive war use. This sharply limits their usefulness to the US Military.
Either way, using US Mil as an excuse doesn't make sense for a ban. They won't be buying gear they have reason to mistrust.
As ever, reasons for the ban seem to be evidence-free speculation. Articles that omit this key part of the story aren't serving their readers.
Non-FPV drone flyers can drop 40mm grenades from 100ft and hit a CEP of like a couple feet, and that's with literally four drops of practice and unsophisticated munitions. Untrained RC plane pilots can NOT do that.