A bill written by a private prison operator to assist its immigration detention business could advance through the Texas state Senate this week, despite vocal protest from civil rights groups. The legislation would allow family detention centers to be classified as childcare facilities, enabling Immigrations and Customs Enforcement to detain women and children for longer periods.

The bill aligns with the Trump administration’s punitive immigration policies and helps it navigate a challenge to federal detention policy.

During the migrant influx of 2014, the Obama administration contracted the construction of two giant family detention centers in south Texas — one for each of America’s biggest private prison companies — to hold women and children seeking asylum. CoreCivic runs the South Texas Family Residential Center in Dilley, and the Geo Group manages the Karnes County Residential Center.

However, because of multiple judicial rulings dating back to 1997, no undocumented child can be held for over 20 days in anything but a licensed “non-secure” childcare facility.

Almost nothing about these detention centers meets that definition. Grassroots groups have given them the grim nickname “baby jails,” and a survivor of a WWII-era Japanese internment camp said the facilities “triggered distressing associations of my own experience as a child.” Reports of inadequate medical care, sexual abuse, improper solitary confinement, and permanently stunted child development proliferate. Most of all, the presence of locks on the doors contradicts the idea of a non-secure facility. “They’re not allowed to leave. That’s jail,” said Mary Small of the Detention Watch Network, a national coalition working on immigration issues.

The Texas Department of Family Protective Services granted the facilities childcare licenses, but last year a state judge blocked the designation. So Geo Group, the nation’s second-largest private prison operator, went to work assembling legislation that would countermand the judicial ruling. The bill would lower state childcare standards for family detention centers, excluding the facilities from regulations such as ones that prohibit housing children and unrelated adults in the same room.

Republican State Rep. John Raney admitted to the Associated Press that Geo Group officials wrote the legislation. “I’ve known the lady who’s their lobbyist for a long time. … That’s where the legislation came from,” said Raney. “We don’t make things up. People bring things to us and ask us to help.” There’s companion legislation in the state House and Senate.

A temporary detention center for immigrants awaits new arrivals on Jan. 3, 2017, in Donna, Texas.

Photo: John Moore/Getty Images

If the bill, which cleared a Senate subcommittee last week, passes, women and children could be held at Karnes or Dilley indefinitely while awaiting deportation. Without the bill, the facilities would likely have to shut down, said the bill’s Senate sponsor, Bryan Hughes. The Karnes facility earns about $55 million per year for the Geo Group. But in part because of the standing judicial order, the population is only about 100 in an 830-bed facility.

Grassroots Leadership, the immigrant rights group whose lawsuit successfully blocked the childcare order last year, is urging Texas legislators to vote down the bill. It was initially supposed to come up in the Senate yesterday but has been delayed.

Because Homeland Security Secretary John Kelly has promised that families caught in border crossings would not be separated, keeping these detention centers open and available for long stays is crucial to the Trump administration’s deportation strategy. Advocates would rather asylum seekers be released while they await trial, rather than be forced into confinement.

Geo Group has a lot riding on expanding immigration detention. It runs the federal case management system for family detention and has committed significant resources to adult detention facilities, which don’t house women or children. The Trump administration just granted Geo Group a $110 million contract to build a 1,000-bed detention facility in Conroe, a small town outside of Houston. The mayor of Conroe, already home to a 1,500-bed Geo Group facility, didn’t know about the new contract until he read about it in press reports.

Geo Group made what appears to be an illegal $225,000 donation to a Trump-supporting Super PAC during the 2016 presidential election. Government contractors are barred from political donations of this type. The company also spends heavily in Texas, including $320,000 to lobby the state legislature in the first four months of this year.

Immigrant rights demonstrators in Texas also occupied the state Capitol on May Day, opposing a separate bill that would bar so-called sanctuary cities in the state.