America’s 28th president reversed racial progress at home. But internationally he was ahead of his time.