The agriculture minister angered teachers and earned a rebuke from the prime minister.