WeWork agrees restructuring deal that shuts out Adam Neumann’s comeback bid