True, you could let the market dictate their salaries, but then you run into the issue of paying one gender more money for the same amount of work, a practice outlawed under the Equality Pay Act of 1963.
The lawsuit in that article is about a dispute over Google providing employee contact information to support a Labor Dept audit, not about alleged pay discrimination.