A federal judge has upheld an Arizona state law that prohibits businesses from knowingly hiring illegal immigrants and yanks the business licenses of those that do.

U.S. District Judge Neil Wake on Thursday dismissed a lawsuit filed by business groups that argued that federal immigration law severely restricts Arizona’s ability to punish people who knowingly employ illegal immigrants.