A U.S. bankruptcy judge approved WeWork's Chapter 11 bankruptcy plan, allowing the shared office space provider to eliminate $4b in debt and hand the company's equity over to a group of lenders and real estate technology company Yardi Systems.