The state exemption is apparently based on a sovereignity clause, though ... that seems somewhat twisted and wrong to me.
I'm thinking of ways that might exploit this.
Say, for the sake of argument, that a state government decided it wanted to host and provide legal cover for Sci-Hub.
Or an entity of state government. Maybe, say, the University of California Library.