The Hudson woman who allegedly supplied former Democratic State Rep. Stacie Laughton with child sex abuse images is set to be freed from jail.

A federal judge ruled Lindsay Groves, 38, can remain out of jail pending her trial on charges of sexual exploitation of children, aiding and abetting, and distribution of child pornography so long as she meets certain conditions.

Laughton, 39, faces identical federal and state charges of distributing child sex abuse images. Laughton, who identifies as transgendered, is being held without bail in the male population at Valley Street Jail in Manchester.

A federal judge ruled last week that Groves can be released safely, meaning she would not be a danger to the community so long as she lives with her parents, has no contact with children, and does not use an iPhone or other internet-connected devices.

“Critically, however, the court finds that conditions of release can be fashioned to address this risk and reasonably assure the safety of the community,” the ruling states.

Prosecutors with the U.S. Attorney’s Office in Boston will appeal this order. Groves will remain locked up until another judge hears the appeal and rules on the potential release. Groves is also being held at the Valley Street Jail with the female population.

Investigators said Groves used her job at Creative Minds Daycare in Tyngsborough, Mass., to access young children for the graphic photos she shared with Laughton. Court records released in the case include a text conversation with a seeming admission from Laughton that the pair had raped children in the past and planned to do it again.

Groves and Laughton were arrested last month in the child sex abuse image case, a culmination of their twisted relationship. In recent years, the pair have been involved in multiple court cases and no contact orders. One case last year landed Laughton in jail for stalking Groves right after Laughton had won re-election to the legislature. According to the court records in the stalking case, Laughton was publicly calling Groves a pedophile and using social media to amplify that accusation.

As Laughton was receiving the child sex abuse photos from Groves, the disgraced lawmaker was engaging in sexually explicit text conversations with Groves about having sex with children, according to court records. Laughton started showing other people the photos being sent by Groves last month, and texting the photos to those people, according to the complaint filed in federal court. The people who got the photos were disturbed by the images and reported the matter to the police, according to the complaint.

Laughton became New Hampshire’s first elected transgender state representative in 2012 and was praised by New Hampshire Democratic Party Chair Ray Buckley as part of the “backbone of the Granite State.”