The teaching of America’s racial history is dividing voters as state governments and federal judges weigh in on what is known as critical race theory.