The shift among tech companies has been driven mainly by concern about their public images, at the expense of public safety — an issue he said was particularly acute when it came to cases involving child predators or terrorists.