The Customs and Border Protection agency’s acting commissioner, John Sanders, is expected to step down in the coming weeks as the government’s primary border enforcement executive, a federal official said Tuesday, a development that comes as the agency faces continuing public fury over the treatment of detained migrant children.

The news of the resignation came shortly after agency officials disclosed that more than 100 children have been returned to a troubled Border Patrol station in Clint, Texas, a location where a group of lawyers who visited recently said hundreds of minor detainees had been housed for weeks without access to showers, clean clothing or sufficient food.

Sanders has led the agency since President Donald Trump tapped the former Customs and Border Protection commissioner, Kevin McAleenan, to replace Kirstjen Nielsen as Homeland Security secretary. Sanders specialized in developing technology for national security initiatives and previously served as the chief technology officer for the Transportation Security Administration.

The official who confirmed his resignation, who requested anonymity because he was not authorized to discuss the matter, said it was not clear whether the impending resignation was connected to recent criticism over the agency’s management of a large influx of migrant families along the border.

In a call with reporters Tuesday, a Customs and Border Protection official disputed the lawyers’ accounts of conditions for hundreds of migrant children at the facility in Clint, saying that detainees who are housed by the agency are given periodic access to showers and are offered unlimited snacks throughout the day.

“I personally don’t believe these allegations,” the Customs and Border Protection official, who spoke on the condition he not be identified, told reporters.

The lawyers’ accounts prompted a significant public backlash, after which all but 30 of the roughly 300 children who were being housed in Clint were transferred elsewhere. Some 249 were placed in a shelter network for children run by the Department of Health and Human Services’ Office of Refugee Resettlement, while others were moved to a tent facility in El Paso run by Customs and Border Protection.

The CBP official said changes put into place by the agency had alleviated overcrowding in Clint, and allowed the return of more than 100 children there. The spokesman said that no additional resources had been provided to the children who were returned to Clint.