That ruling wasn't based on race, it was based on a whole bunch of factors (including: high amount of illegal immigrants in the area in question, jobs and locations that attract illegal immigrants due to not needing paperwork, etc). It was also not final, it was temporary pending another appeal.