Nike doesn't face any real consequences for pissing off Americans, and as such, they have no problem doing so, while pandering to the Chinese government.
I mean there is two sides of this which I think a good amount of us forget. His entire career has been listening to what other people say and do in order to make more and more money in his career.
He has had a coachs who instructs him what to do
He had a general managers who instructs him what to do
His agent is someone who consults him on what he think is best to do
His financial manager is someone who consults him on what he thinks is best to do.
His PR team is a group who consults him on what they think is best to do.
This wasn't something that Lebron decided by himself. He consulted with those around him, the professionals, and they told him to do this.