Judge Shira Scheindlin’s ruling ordering a monitor to reform New York City Police Department stop-and-frisk practices that she found unconstitutional was attacked by the city as a dangerous judicial overreach Tuesday before the U.S. Court of Appeals for the Second Circuit.

Arguing for a stay of Scheindlin’s August ruling just one week before stop-and-frisk opponent Bill de Blasio could be elected as the next mayor of New York City, Celeste Koeleveld of the Law Department said Scheindlin’s order of a monitor and her finding that police targeted minorities for stopping and frisking without reasonable suspicion of criminal activity has sowed confusion in the police department and endangered public safety.