Reasonable and moderate restraint of students is permitted for a student’s protection. If a school employee restrains student in substantial compliance with this section, the employee may not be disciplined, or held liable in any criminal action or for civil damages as a result of the restraint or isolation.