A federal judge in Oakland ruled that law enforcement agencies cannot force people to use biometric features such as facial-recognition to unlock their phones and other devices in a case that highlights the fight between Big Tech and law enforcement over users’ privacy.