SAN ANGELO, Texas (AP)  An appellate court decision upended the custody case that sent more than 440 children from a polygamist sect's ranch into foster care, but it's not clear whether the children might soon return home. The Third Court of Appeals in Austin said the state failed to show the youngsters were in any immediate danger, the only grounds under Texas law for taking children from their parents without court action. Texas District Judge Barbara Walther now has 10 days to release the youngsters from custody, but the state could appeal to the Texas Supreme Court and keep the children from immediately going back to their parents. VIDEO: Court rules Texas had no right to remove polygamist sect kids The decision Thursday in one of the biggest child-custody cases in U.S. history was a humiliating defeat for the state Child Protective Services agency. It was hailed as vindication by members of the Fundamentalist Church of Jesus Christ of Latter Day Saints, who claim they are being persecuted for their religious beliefs. "I just feel like I'm coming back to life," Nancy Dockstader, who has five children in state custody, said Friday on NBC's "Today." "We can be a family again. It's just unreal." Dockstader said she and the other parents haven't decided yet if they will pursue legal action against the state. They are waiting to talk to their lawyers and to hear what they are required to do to get back their children. "If we need to move away from the ranch, we will," said Dockstader's husband, James. "We would like that to be our home. We feel it's the safest environment for our children." Every child at the Yearning For Zion Ranch in Eldorado was taken into custody more than six weeks ago after someone called a hot line claiming to be a pregnant, abused teenage wife. The girl has not been found and authorities are investigating whether the calls were a hoax. Child-protection officials argued that five girls at the ranch had become pregnant at 15 and 16 and that the sect pushed underage girls into marriage and sex with older men and groomed boys to enter into such unions when they grew up. But the appeals court said the state acted too hastily in sweeping up all the children and taking them away on an emergency basis without going to court first. "Even if one views the FLDS belief system as creating a danger of sexual abuse by grooming boys to be perpetrators of sexual abuse and raising girls to be victims of sexual abuse ... there is no evidence that this danger is 'immediate' or 'urgent,"' the court said. "Evidence that children raised in this particular environment may someday have their physical health and safety threatened is not evidence that the danger is imminent enough to warrant invoking the extreme measure of immediate removal," the court said. The court said the state failed to show that any more than five of the teenage girls were being sexually abused, and offered no evidence of sexual or physical abuse against the other children. Half the youngsters taken from the ranch were 5 or younger. Only a few dozen are teenage girls. The court also said the state was wrong to consider the entire ranch as a single household and to seize all the children because some parents in the home might be abusers. CPS spokesman Patrick Crimmins said department attorneys had not decided whether to appeal. "We are trying to assess the impact that this may have on our case," he said. CPS's umbrella agency, the Department of Family and Protective Services, issued a statement defending the raid, saying it removed the children "after finding a pervasive pattern of sexual abuse that puts every child at the ranch at risk." "Child Protective Services has one duty — to protect children. When we see evidence that children have been sexually abused and remain at risk of further abuse, we will act," the department said. The decision technically applies to only 38 of the roughly 200 parents who challenged the seizure. But Julie Balovich, a Legal Aid attorney for some of the parents, said she expected attorneys for all the other parents to seek to join the ruling. Balovich said the court "has stood up for the legal rights of these families and given these mothers hope that their families will be brought back together." Five judges in San Angelo, about 40 miles north of Eldorado, have been holding hearings on what the parents must do to regain custody. Those hearings, which began Monday, were suspended after the ruling Thursday. Of the 31 people the state initially said were underage mothers, at least 15 were reclassified as adults before the hearings were suspended. One mother is 27. The custody case has been chaotic from the beginning. During the first round of hearings, held two weeks after the April 3 raid, hundreds of lawyers crammed into a courtroom and nearby auditorium, queuing up to voice objections or ask questions on behalf of the mothers who were there in their trademark prairie dresses and braided hair. CPS has struggled for weeks to establish the identities of the children and sort out their tangled family relationships. The youngsters are in foster homes all over the sprawling state, with some brothers or sisters separated by as much as 600 miles. Copyright 2008 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed. Enlarge By Brian Connelly, San Angelo Standard-Times/AP Two members of the Fundamentalist Church of Jesus Christ of Latter Day Saints hug outside the Tom Green County Courthouse in San Angelo, Texas, on Thursday after a Texas appeals court ruled that the state had no cause to take their children. Guidelines: You share in the USA TODAY community, so please keep your comments smart and civil. Don't attack other readers personally, and keep your language decent. Use the "Report Abuse" button to make a difference. You share in the USA TODAY community, so please keep your comments smart and civil. Don't attack other readers personally, and keep your language decent. Use the "Report Abuse" button to make a difference. Read more