A state’s attempt to ban critical race theory provoked a lively debate about free speech and the nature of teaching.