Contentious teacher-related policies moving from legislatures to the courts