The state Senate approved Tuesday legislation that would bar the use of TikTok by public school students, teachers and administrators as part of an overall social media reset.