It violates the civil rights act.
I think the Civil Rights Act was the basis for the Supreme Court creating the concept of “protected classes.” That and/or the 14th Amendment.