These discriminatory policies have been on the books for years.