The Police Department will return the device earlier than planned after critics seized on it as a dystopian example of overly aggressive policing. The machine, which the police named Digidog, became a source of heated debat.