A federal judge has temporarily halted the deportation of an illegal immigrant who was shot by Immigration and Customs Enforcement officers during an arrest attempt in New York City, setting the stage for what may become a significant test of executive authority in immigration enforcement.

U.S. District Judge J. Paul Oetken issued the order Friday after attorneys for Oscar Belgal filed an emergency petition challenging his detention. The ruling bars federal authorities from deporting Belgal or transferring him to facilities outside the Southern or Eastern Districts of New York or the District of New Jersey without prior court approval. The order does not, however, require Belgal’s release from custody.

The judicial intervention comes amid conflicting accounts regarding Belgal’s whereabouts. Homeland Security Secretary Markwayne Mullin stated Friday that Belgal had already been moved out of New York. Judge Oetken has directed the government to be prepared to explain Belgal’s current location and his whereabouts at the time the emergency petition was filed.

The incident that precipitated these legal proceedings occurred Thursday in New York City’s Marble Hill neighborhood during what ICE described as a targeted operation. According to Marcos Charles, a senior ICE official, officers attempted to arrest Belgal, a 28-year-old Dominican national, when he refused orders to exit his vehicle. Charles stated that Belgal struck two government vehicles and drove toward officers, forcing them to respond with gunfire in accordance with their training.

New York City Police Commissioner Jessica Tisch reported that an officer fired seven rounds as Belgal moved his vehicle forward. One bullet struck him below the left ear. A five-year-old child was present in the vehicle but escaped injury. Belgal survived the shooting, received treatment at a local hospital, and was subsequently placed in federal custody.

The shooting triggered immediate public reaction. Demonstrations outside the hospital Thursday night escalated into riots and clashes with police, resulting in five arrests.

Both Mayor Zohran Mamdani and Governor Kathy Hochul, Democrats, have publicly stated they sought Belgal’s release through direct appeals to President Donald Trump and Secretary Mullin. Both officials have also demanded greater transparency regarding the circumstances of the shooting.

The Department of Homeland Security has defended the operation by pointing to Belgal’s criminal history and alleged gang affiliations. According to DHS records, Belgal has a prior conviction for grand larceny and previous arrests involving assault, robbery, drug possession, and weapons offenses. The department has further alleged that he maintains ties to the Trinitarios street gang.

The case now presents questions about the balance between judicial oversight and executive branch authority in immigration enforcement operations. Judge Oetken’s order remains in effect unless modified or vacated by the court, ensuring that any further action regarding Belgal’s deportation will require judicial review.

The broader implications of this case may extend well beyond one individual’s circumstances, potentially affecting how similar situations are handled in the future.

Related: Philadelphia Police Officer Killed in Ambush Shooting, Suspect Charged with Murder