With the support of its creditors, WeWork aims to emerge from bankruptcy as a leaner, more sustainable business.