The Senate advanced John Ratcliffe’s nomination for Central Intelligence Agency director in a key test vote, effectively guaranteeing he will be confirmed in a final vote later Thursday.