WeWork’s co-founders must give $1 billion to charity over 10 years or lose some control of the company