Moves by Apple Inc. and Google Inc. to put some smartphone data out of the reach of police and the courts are raising alarms inside U.S. law-enforcement agencies, current and former officials say.

Several officials in Washington said they were bracing for a confrontation with Silicon Valley on the issue, the latest fallout from the revelations by former National Security Agency contractor Edward Snowden about government surveillance.

...