US and Iran inch toward a deal