In an unprecedented ruling, a federal judge ordered the U.S. government to provide mental health services to thousands of families who entered the country illegally because they were criminally prosecuted after being separated from their families.

Judge John A. Kronstadt of the U.S. District Court in Los Angeles, referring to the “state-created danger” doctrine, blamed the federal government for generating “severe mental trauma to parents and their children,” according to the report cited by The Hill.

In this regard, he urged the Trump administration to make available to affected immigrants all possible services, including mental health examinations and psychological counselling, regardless of their duration or price.

The magistrate argued that the government acted with “deliberate indifference” placing illegal immigrants in dangerous situations, until President Donald Trump withdrew the family separation policy implemented by his predecessor Barack Hussein Obama.

“Obama separated the children, by the way. You can—just so you understand, President Obama separated the children. Those cages that were shown, I think they were very inappropriate. They were built by President Obama’s administration, not by Trump,” the president said at the time, specifying that the “cages” in the photographs actually dated from 2014, and “were built by the Obama administration.”

“President Obama had child separation. Take a look—the press knows it, you know it, we all know it. I’m the one that stopped it,” he concluded.

Government attorneys, argued the United States is not responsible for the mental health problems affecting the families of illegal immigrants and that there was no proof that these immigrants suffered psychological harm due to their separation and subsequent reunion, The Hill said.

It is worth mentioning that to date, the principle of “danger created by the state” cited by Judge Kronstadt for his ruling had only been used to denounce public officials or employers.