Chris Lilienthal, communications manager for the Pennsylvania State Education Association, said the legislation could help teachers keep students engaged in the classroom.