Relations between the NBA and China had soured after a pro-democracy tweet was liked by a team official in 2019.