Students had looked up pornography on laptops issued by the school