Marie Yovanovitch, who gave evidence at the president’s impeachment hearings, ends diplomatic work.