The United States and Iran are working to finalize an agreement, with Qatar taking the lead in recent hours to review remaining details. The report cites the New York Times and regional officials.