US police officers have quit after using licence plate-reading cameras to track romantic partners.