The legislation directs public and charter schools to implement and enforce policies that restrict students’ access to social media and phones during the school day.