There have been a bunch of studies of this, and the conclusions are pretty consistent: women aren't paid less for doing equal work, they're paid less because they end up doing less or lower-paid work once they have children, because they do a disproportionate share of the childcare.
This should still be fixed, but it means the fix is mostly about what happens at home, not what happens at work, which is much more difficult.
https://www.bls.gov/cps/cpsaat39.htm