Employers will be barred from asking a simple question that can mean lower salaries for women and minorities.