Yes the foundations can mandate that the tools are forbidden to use in military and intelligence applications.
But they won’t. And I’m fine with that. My point is foundations have licensing power while corporations regulate it through sales. Each decision is connected to money. And no one is going to say no to more money.