The unscheduled talks come as Trump's Middle East envoy said Israel and Hamas were closing their differences on a truce.