The Appellate Division, First Department, overturned a lower court decision that had ordered the production of the documents.