According to federal law, it is illegal to discriminate in any aspect of employment, including

hiring and firing
compensation, assignment, or classification of employees
transfer, promotion, layoff
all of the above