The feds have agreed to issue a temporary stay of deportation for immigrant-rights activist Ravi Ragbir, it was announced on Friday.

Ragbir has been fighting deportation after he was arrested on Jan. 11 during a routine check-in with Immigration and Customs Enforcement that sparked protests and arrests of nearly 20 people.

Reps for Ragbir — the Trinidad native — also announced that they will be filing a lawsuit in Manhattan federal court on Friday against ICE, Homeland Security, the Department of Justice and Attorney General Jeff Sessions to permanently stop officials from attempts to deport Ragbir and for relief for other immigrants-rights activists who have also been targeted for deportation.

“Justice was restored today, at least temporarily, as Mr. Ragbir is now able to remain in the United States and free until the court reviews his constitutional claims,” Ragbir’s attorney R. Stanton Jones said.

Ragbir — who has been a US resident since 1994 — has a 2001 felony fraud conviction which prompted a 2006 order of deportation that Ragbir had successfully challenged until his arrest last month.

Ragbir is appearing in Newark federal court on Friday in his case to overturn his criminal conviction.