The former White House communications director, who left the Trump administration in 2018, is returning as counselor to the president and senior adviser.