The measure, which takes effect on November 3, applies across the public education system and restricts cellphone and tablet use in primary and secondary schools.