Endo on track to finally emerge from bankruptcy after reaching deal ...