White House sources said the president’s diplomatic strategy, which relied heavily on intense, behind-the-scenes discussions, worked to help both Middle East parties reach a truce.