Last month, Child Protective Services seized over 400 kids from a polygamist ranch near El Dorado.
However, a ruling issued Thursday may send some of them home.
An appeals court in Austin found that CPS acted hastily when removing the kids.
It found that the agency did not provide evidence that most of the children were in physical danger.
In the appeals court's opinion, the existence of the Fundamentalist Church of Jesus Christ of Latter-DAy Saints' belief system does not put children of FLDS parents in physical danger.
Thirty-eight mothers whose children were seized, filed what's known as a "writ of mandamus."
It over turns a hearing in April, where the state was given custody of the FLDS kids.
Currently, the writ only applies to the 38 mothers' 130 children.
Attorneys are waiting to see if the judge extends the writs to other children.
"The judge out there could choose not to, and make us file more writs that would accomplish the same thing but it would take more time and give CPS time to figure out what they're going to do," said local attorney John Quinn.
Quinn is representing some of the children.
CPS could still appeal the decision. If it doesn't, the court in San Angelo has ten days to comply with the ruling.
Viewers with disabilities can get assistance accessing this station's FCC Public Inspection File by contacting the station with the information listed below. Questions or concerns relating to the accessibility of the FCC's online public file system should be directed to the FCC at 888-225-5322, 888-835-5322 (TTY), or email@example.com.