Democratic House Speaker Nancy Pelosi will soon be replaced by a Republican as the third-highest-ranking U.S. official