Commitment to user privacy complicates Apple’s push into artificial intelligence