WeWork cleared one of the last remaining hurdles to hand control of the co-working business over to service partner Yardi Systems in a bankruptcy restructuring that would value the company at a fraction of what it was worth at its peak five years ago.