The official, Rob Porter, served as the staff secretary, a title that belies the role’s importance in any White House — but especially in Trump’s.