England's education secretary acted unlawfully in scrapping a string of legal protections for children in care, Appeal Court judges have ruled.
They said Gavin Williamson should have consulted England's children's commissioner and other groups, before scrapping 65 safeguards for children.
The court said consulting such bodies would have been "manifestly in the interest of vulnerable children".
The government says it is disappointed by the ruling.
Read more in BBC News
Michaela school wins High Court battle over prayer ban
A High Court judge has ruled any disadvantage to Muslim pupils caused by a prayer ban at Michaela Community School was “outweighed by the aims
Children excluded in primary school less likely to pass GCSEs, new research warns
The majority of children excluded in primary school don’t pass their GCSEs in English and Maths, according to new research. The charity Chance UK looked
Revealed: hundreds of vulnerable children sent to illegal and unregulated care homes in England
Hundreds of extremely vulnerable school-age children in England are being sent to illegal, unregulated homes every year because of a chronic shortage of places in secure local