A federal judge in Rhode Island on Monday said that the Trump administration had violated his order halting a sweeping federal funding freeze and ordered the government to “immediately restore frozen funding.”
U.S. District Judge John J. McConnell handed down the order after the plaintiffs in the case, a coalition of 22 states, said the government had not restored funding in several programs despite his Jan. 31 order temporarily halting the wide-ranging Office of Management and Budget directive that had caused chaos and confusion across the country.
Watch NBC 5 free wherever you are

“The States have presented evidence in this motion that the Defendants in some cases have continued to improperly freeze federal funds and refused to resume disbursement of appropriated federal funds,” McConnell wrote, even though his order lifting the freeze had been "clear and unambiguous."
It's the first time since President Donald Trump's second inauguration that a federal judge has accused his administration of defying a court order.
Get top local stories in DFW delivered to you every morning with NBC DFW's News Headlines newsletter.

Follow live politics coverage here
"The Defendants now plea that they are just trying to root out fraud. But the freezes in effect now were a result of the broad categorical order, not a specific finding of possible fraud," McConnell wrote. "The broad categorical and sweeping freeze of federal funds is, as the Court found, likely unconstitutional and has caused and continues to cause irreparable harm to a vast portion of this country."
He said the "pauses in funding violate the plain text" of the temporary restraining order he issued on Jan. 31, and ordered that funding be immediately restored for the duration of the time his TRO is in effect. The order is expected to remain in place until at least a hearing on a preliminary injunction later this month.
In its filing last week asking the judge to take action, the coalition argued that "Jobs, lives, and the social fabric of life in the Plaintiff States are at risk from the disruptions and uncertainty that have continued now a full week after entry of the Order."
The Justice Department did not immediately respond to a request for comment. It filed a notice of appeal for both of McConnell's orders late Monday.
Trump took a broad swipe at the judicial branch Monday, saying that there have been "some very bad rulings" and that it's "a shame to see it."
"Judges should be ruling. They shouldn’t be dictating what you’re supposed to be doing," Trump said in a radio interview on "The Mark Levin Show."
In a separate case Monday, unions suing the administration over U.S. Agency for International Development employees’ being placed on administrative leave alleged the agency wasn’t complying with a different judge’s order temporarily reinstating those employees.
Their filing said they had “become aware that Defendants have not fully complied with the terms of this Court’s order,” including by continuing to lock employees out of their computer system. “Those members, therefore, cannot assess whether they have been reinstated from leave,” it said.
They requested an emergency hearing.
Justice Department lawyers in the funding freeze case, meanwhile, had argued that they didn’t believe the judge’s order covered some types of funding and that funding was being withheld while they reviewed whether it was “appropriate.”
The OMB memo, which was later rescinded, directed federal agencies to “temporarily pause all activities related to obligation or disbursement of all Federal financial assistance, and other relevant agency activities that may be implicated" by Trump's executive orders, including, but not limited to, financial assistance for foreign aid, nongovernmental organizations, DEI, woke gender ideology, and the green new deal.”
In his ruling last month, McConnell found those directives appeared to fall outside the scope of the president's authority.
"The Executive’s action unilaterally suspends the payment of federal funds to the States and others simply by choosing to do so, no matter the authorizing or appropriating statute, the regulatory regime, or the terms of the grant itself. The Executive cites no legal authority allowing it to do so; indeed, no federal law would authorize the Executive’s unilateral action here," his decision said.
“Federal law specifies how the Executive should act if it believes that appropriations are inconsistent with the President’s priorities — it must ask Congress, not act unilaterally,” he wrote.
“Are there some aspects of the pause that might be legal and appropriate constitutionally for the Executive to take? The Court imagines there are, but it is equally sure that there are many instances in the Executive Orders’ wide-ranging, all-encompassing, and ambiguous ‘pause’ of critical funding that are not,” the ruling said.
NBC News' Ken Dilanian and Raquel Coronell Uribe contributed.
This story first appeared on NBCNews.com. More from NBC News: