Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

A federal judge in Indianapolis on Monday blocked Republican Gov. Mike Pence's order that barred state agencies from helping Syrian refugees resettle in Indiana, saying the governor's directive "clearly discriminates" against refugees from the war-torn country.

The ruling grants a request for a preliminary injunction from Exodus Refugee Immigration, which helps resettle refugees in Indiana. The group sued shortly after Pence issued his order in November, saying the change would hurt aid groups by withholding reimbursements for housing and medical care to assist Syrian refugees.

Exodus and other organizations have continued to resettle Syrian refugees, though the state has sought to withhold funds earmarked for resettlements. Four Syrian refugees were settled in January, with Exodus planning to settle nearly 200 more this year, Monday's opinion said.

More than two dozen states, most with Republican governors, have taken similar action to suspend Syrian resettlement programs.

Pence released a statement saying he stood by his decision and would quickly appeal. The governor has repeatedly cited the November attacks in Paris as justification, noting that a passport found near one of the suicide bombers had been registered along the route asylum seekers from Syria were taking through Europe.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

In her 36-page opinion, U.S. District Judge Tanya Walton Pratt said the state had a compelling concern to protect its residents, but that withholding federal grant money from the aid group "in no way furthers the state's asserted interest in the safety of Indiana residents."

In this file photo taken on Tuesday, Jan. 12, 2016, Indiana Gov. Mike Pence delivers his State of the State address. Darron Cummings / AP

Pratt also wrote that the governor's directive "clearly discriminates against Syrian refugees based on their national origin."

Similar lawsuits have been filed in Texas, Alabama and Pennsylvania, according to the judge's ruling. An attorney for the Indiana plaintiffs, Kenneth Falk, said he believes Pratt's ruling is the first action taken by a judge in such a case.

The lawsuit, filed on behalf of the refugee group by the American Civil Liberties Union of Indiana, said the state was violating the U.S. Constitution and the Civil Rights Act by accepting refugees from other countries but not from Syria. At the time, the group said it expected to settle about 19 Syrians vetted by the federal government within the next several months.

Pratt said she granted the preliminary injunction because she believed the plaintiffs would eventually prevail in their lawsuit.

Related: More Governors Seek to Ban Syrian Refugees After Paris Massacre

The judge said the state had acknowledged it doesn't have the authority to bar Syrian refugees from crossing into Indiana after the U.S. government already gave them a green light to enter the country. But she said the aim of yanking funding from groups like Exodus was to achieve the same result.

"The State deprives Syrian refugees that are already in Indiana of social services in the hopes that it will deter (voluntary agencies) from resettling other Syrian refugees in the State," she wrote. "This is essentially a policy of punishing Syrian refugees already in Indiana in the hopes that no more will come."

Pratt added that the state's decision to not pass on funds to Exodus would mean the group might be forced to cut funding to other refugee clients — not just those from Syria.