A senior U.S. intelligence official, speaking on condition of anonymity, said the purpose of Trump’s visit to the CIA’s sprawling campus was to swear in U.S. Representative Mike Pompeo, a Kansas Republican, as the spy agency’s new chief.