Brazilian students will no longer have access to their phones in classrooms and hallways unless given permission by a teacher, according to new legislation passed this week.