It was a rare and speedy retreat from a presidential appointment after a rough start to one of the highest-profile roles in the White House.