Sanders, the woman who defended Trump through some of the most contentious chapters of his presidency, is leaving her post as the White House press secretary.