The legislation says that state agencies may not give preferential treatment to anyone based on race, sex, color or ethnicity.