In the late stages of his presidential campaign, Trump had disavowed his years-long promotion of the racially tainted falsehood that Barack Obama, the nation’s first African American president, was born outside the United States and therefore an illegitimate president.