Jonathan Haidt’s “The Anxious Generation” has prompted an unlikely bipartisan revolution to ban phones in classrooms.