SINGAPORE—Five years ago, the National Basketball Association faced a crisis ... demonstrating a potential playbook for foreign businesses looking to repair relations with China.