An undocumented immigrant with a criminal record can't be deported—at least not yet—because federal immigration authorities failed to demonstrate his crimes were morally disturbing.

The U.S. Court of Appeals for the Third Circuit held Thursday that the Immigration and Customs Enforcement failed to show that Mexican citizen Roman Ildefonso-Candelario's 2015 misdemeanor conviction for falsifying immigration papers was a crime of “moral turpitude.”

The ruling comes amid the Trump administration's ongoing efforts to clamp down on illegal immigration, which have been met with difficulty in the court system.