The Senate on Thursday confirmed John Ratcliffe as director of the CIA, the second of President Trump’s nominees to earn the chamber’s approval.