Lonnie G. Bunch III, who has led the institution since 2019, parried the White House until deciding it was time to go.