Since 2016, states and cities have banned employers from asking about past compensation during the hiring process in an effort to lessen the gender wage gap.