Research seems to indicate that pay transparency laws do reduce pay inequality - but by lowering the high end of salaries. https://www.economist.com/united-states/2023/01/05/pay-transparency-laws-do-not-work-as-advertised
Pay-transparency laws do not work as advertised

Which is a pity, as California and Washington have just adopted them

The Economist