Soldiers are monitoring migrants at a detention centre in Texas, in what one congressman fears comes close to a breach of the Posse Comitatus Act, a cornerstone of US society.

Under the 1878 federal law members of the army are prohibited from acting as a domestic police force.

Active-duty troops are only allowed to help police officers under limited exceptions to the act, including when expressly authorised by law or by the constitution.

But troops are currently keeping watch over detainees at a facility in Donna, Texas, according to NBC News.

The soldiers reportedly stand watch in a large room where the migrants are held.

'Dangerous' overcrowding of migrants in US border facilities Show all 6 1 /6 'Dangerous' overcrowding of migrants in US border facilities 'Dangerous' overcrowding of migrants in US border facilities Photos of detained migrants crowded into cells at the US border - with one holding up a sign reading simply "help" - have been released as part of a new report warning of "dangerous" overcrowding. The memo was sent to the Department of Homeland Security by its Inspector General, containing photos taken at border facilities in the Rio Grande Valley over a week in June DHS/OIG 'Dangerous' overcrowding of migrants in US border facilities Eighty-eight adult males held in a cell with a maximum capacity of 41, some signalling prolonged detention to OIG Staff on June 12 DHS/OIG 'Dangerous' overcrowding of migrants in US border facilities Overcrowding of families observed by OIG on June 11, at a border patrol facility in Weslaco, Texas DHS/OIG 'Dangerous' overcrowding of migrants in US border facilities Migrant families overcrowding a border patrol facility on June 11 in McAllen, Texas DHS/OIG 'Dangerous' overcrowding of migrants in US border facilities Fifty-one adult females held in a cell designated for male juveniles with a capacity for 40 at Border Patrol’s Fort Brown Station DHS/OIG 'Dangerous' overcrowding of migrants in US border facilities Migrant families overcrowding a border patrol facility on June 11 in McAllen, Texas DHS/OIG

The soldiers are unarmed, meant to be present for welfare checks and are not supposed to interact with the detainees, instead referring any issues directly to Border Patrol officers.

But one politician has expressed concern that the soldiers may find themselves in a legal grey area.

John Garamendi, a Democrat who chairs the House Armed Services Committee’s Subcommittee on Readiness, said the situation teetered “on the edge of the Posse Comitatus law.”

“It’s not the role of the US military to be a prison guard,” he said, adding the situation was “certainly mission creep” and could put soldiers “in a precarious legal situation.”

The US military’s Northern Command defended the troops’ presence at the detention centre.

“At the Donna facility specifically unarmed military personnel monitor the migrants for signs of medical distress, possibility for unrest, unusual behaviour and unresponsiveness,” a spokesperson said.

“In the event of a medical emergency or other reportable event, our military personnel immediately notify [Border Patrol] personnel on-site who respond to the incident or event in question.”

“Monitoring the wellness of migrants is not a law enforcement function, and this activity has been reviewed by our legal staff to ensure compliance with the Posse Comitatus Act and applicable law.

“[Border Patrol] personnel are always present to provide force protection, physical security and perform their law enforcement duties.”

Support free-thinking journalism and attend Independent events

Donald Trump’s repeated attempts to increase US military involvement at the border have consistently raised Posse Comitatus concerns.

The White House sent 2,100 extra troops to the southern border on 18 July, as part of its ongoing efforts to secure the US’ southern border.