A new law requires companies with at least four employees to post salary ranges in job listings in an effort to increase pay transparency.