After a marathon mediation session, New York and 14 other states have agreed to a proposed settlement with Purdue Pharma and the Sackler family, according to documents filed late Wednesday in the U.S. Bankruptcy Court for the Southern District of New York.