WeWork founder Adam Nuemann and Japanese firm Softbank have reached a deal to settle their monthslong legal dispute, paving the way for the coworking company to try again to go public after its disastrous 2019 IPO attempt.