"The legislation has garnered opposition from immigration activists, but the most vocal opponents are privacy advocates and the states themselves." . . . .