The deal has received initial approval from the bankruptcy judge but will require the approval of creditors and final court approval.