Faraday cage and block all internet in the classroom would make most devices unusable for anything except direct P2P apps like Briar.
I submit that any effective jamming or interference of wireless devices could be disabled in an emergency.
Of course, if there is a rule, it should be enforceable by teachers. Teacher says no phone? Put the fucking phone away, child.