A draft agreement has been released in court by Texas Child Protective Services lawyer Gary Banks.
It says the parents can get their children back after showing identifications and pledging to take parenting classes and remain in Texas.
The agreement was reached with the 38 mothers of the 124 children who filed the complaint.
Their complaint prompted the Texas Supreme Court to rule on Thursday that the state overstepped its authority in taking more than 400 children.
But the deal affects nearly all the children since they were removed under identical circumstances.