A startup company took billions of photos from Facebook and other websites to create a facial-recognition database, and hundreds of law-enforcement agencies are using it