History textbooks used in New York City during the president’s childhood called the Klan “patriotic,” and downplayed the role of slavery in “the War Between the States.”