Apple’s high-stakes negotiations with the Chinese government could complicate Obama’s tough talk on snooping