Miller, a longtime spokesman for Trump’s campaign and later the transition operation, had been named communications director and assistant to the president as part of the senior White House communications team.