Doesn't that guarantee that foreigners will continue to be paid more than locals?
You want foreigners to cost more, to incentivize usage of the local population first — and the whole point of the h1b was supposed to be to “improve the average”, by only hiring for those skills/expertise that can be met by local population.
In the Netherlands it's 2x of median salary across all job market, not 2x of the same position that could be filled by local. The idea of this policy is to prevent foreigners (which EU citizens are not) from outbidding locals and lowering the living standard in the country.
So if knowledge workers are a scarce resource which you can't find at home, you are naturally paying more.