Karoline Leavitt’s exit highlights the toll of one of Washington’s most demanding jobs on working parents.