The nation’s second-largest teachers union said Thursday it was losing patience with social media apps that it says are contributing to mental health problems and misbehavior in classrooms nationwide, draining time and money from teachers and school systems.