The findings have prompted several police departments to restrict access to their surveillance systems and investigate how federal agents gained entry.