“And there will be plenty of non-combat places to put them as well,”
That is not legal under US law. They will be infantry, and everything surrounding that.
Not a question of legality.
Military has already done the studies that females in infantry squads reduce capability and cause problems that arent there when they are absent. Physicslly stronger and faster units of men only are the best at winning and meeting mission objectives. Its not deniable, its been proven despite wokefolk wanting to prove the opposite.
If they want to win wars and keep risks as low as possible, you dont put women in infantry squads. There will be plenty of opportunity to serve in needed support and logistics roles. Putting people where they are the best use is critical to military success. Not all guys they have are optimal in combat. Its not like they didnt put those guys in noncombat roles and they could still be useful and productive.