The move amounted to one of the few major changes in West Wing personnel in Mr. Trump’s second term.