The exact opposite is true: https://www.opensecrets.org/news/2018/04/women-owned-biz-rec...
Where did you even hear this claim?
Programs like this enter into it: https://business.defense.gov/Small-Business/WOSB/
You're absolutely correct that the outcome is quite transparently wildly inequitable. I think it's possible that it could be the case that both assertions could be correct at the same time.
Affirmative Action for capital owners is absurd.
Microsoft has a decades long good relationship with the DoD, specifically on the security and access control side of things.
Secondly I very much hope government procurement to the tune of billions of taxpayer dollars follows objective criteria rather than someone at the DoD going "huh, okay".