In the face of escalating White House attacks about how museums present American history, Lonnie G. Bunch III has announced his decision to depart.