Agreement with bondholders expected to bring two-year restructuring saga to a close