The Civil Rights Act said it was illegal to use race and gender when hiring people. (Most of the time)

or The Civil Rights Act said it was always legal to use race and gender when hiring people.