Deal comes after months of mediation between the family that controlled the company and its creditors