A federal judge dealt a serious blow to Arizona’s law on Wednesday when she put most of the crackdown on hold just hours before it was to take effect.

The ruling by U.S. District Judge Susan Bolton sets up a lengthy legal battle as Arizona fights to enact the nation’s toughtest-in-the-nation law. Republican Gov. Jan Brewer said the state likely appeal the ruling and seek to get the judge’s order overturned.