British officials have held private talks with their US counterparts in an attempt to resolve concerns that the UK is trying to force Apple Inc. to build a backdoor into Americans’ encrypted data, according to people familiar with the matter.