Apple never challenged actual law. To quote the article:
> [Timothy D. Cook] made clear that Apple would obey American law — but only after trying to shape the law.
In the case of China here, the law was already passed. Apple is just conforming to the law.