New York Gov. Andrew Cuomo (D) announced pardons on Monday for 22 immigrants who were at risk of deportation because of criminal records, taking a swipe at President Trump in the process.

"While President Trump shuts down the federal government over his obsession with keeping immigrants out, New York stands strong in our support for immigrant communities," Cuomo said in a statement.

"These actions will help keep immigrant families together and take a critical step toward a more just, more fair and more compassionate New York," he added.

Many of the immigrants who received pardons were convicted of drug-related crimes.

In addition to the pardons, Cuomo commuted the sentences of seven people currently serving jail time.