State officials cite the Educators’ Code of Ethics, reflecting a broader wave of workplace discipline across schools, universities and companies.