A federal judge in Washington state ruled Friday that certain asylum seekers must be given a bond hearing before an immigration judge within seven days of requesting the hearing or be released.

District Judge Marsha Pechman wrote that the detention of asylum seekers for indefinite periods of time could cause irreparable harm.

ADVERTISEMENT

She ordered the Department of Homeland Security (DHS) to be responsible for proving certain asylum seekers could pose a danger to the community if released, instead of putting the onus on asylum seekers to prove they are not dangerous.

The ruling came the same day that President Trump Donald John TrumpOmar fires back at Trump over rally remarks: 'This is my country' Pelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Trump mocks Biden appearance, mask use ahead of first debate MORE visited the southern border to view part of his border wall. He spoke out against current policies for those seeking asylum, saying that the answer for both migrants looking to be granted asylum and undocumented immigrants is: “I’m sorry, we’re full.”

Pechman's order stemmed from a lawsuit initially challenging the Trump administration's separation of migrant families at the border — which has since been ended — under the "zero tolerance" policy implemented last year by former Attorney General Jeff Sessions Jefferson (Jeff) Beauregard SessionsGOP set to release controversial Biden report Trump's policies on refugees are as simple as ABCs Ocasio-Cortez, Velázquez call for convention to decide Puerto Rico status MORE.

The lawsuit has since been amended to allege that asylum seekers are being detained for weeks or months at a time.

DHS has disputed those allegations in court.

The agency now requires asylum seekers to remain in Mexico while their cases are processed in the U.S.

Pechman, a Clinton appointee, used the ruling to criticize the Trump administration’s policies.

She wrote that asylum seekers are being forced to “accept their indeterminate detention and receive bond hearings at the Government’s pleasure with a reversed and inequitable burden of proof and procedural deficiencies,” or “give up their asylum claim and allow themselves to be deported back to a homeland where they have already been found to have a credible fear or injury or death.”

“The Constitution does not require these Plaintiffs to endure such a no-win scenario,” she added.

Updated at 6:40 p.m.