The deal offers Spirit a clearer, though still challenging, path toward survival after months of uncertainty and creditor infighting.