(CNN) A federal judge in Seattle on Tuesday blocked the Trump administration policy denying bond hearings to asylum seekers.

US District Judge Marsha Pechman ruled that people who are detained after entering the US to seek protection are entitled to bond hearings and the chance to be released from custody under the Constitution.

"It is the finding of this Court that it is unconstitutional to deny these class members a bond hearing while they await a final determination of their asylum request," Pechman wrote.

Attorney General William Barr in April announced a policy that some asylum seekers who have established credible fear and are subject to deportation cannot be released on bond by immigration judges -- a major reversal from a prior ruling that could lead to immigrants being held indefinitely.

Pechman addressed this possibility, taking issue with a statement from Immigration and Customs Enforcement that its Office of Enforcement and Removal Operations does not intend to re-detain migrants "at this time."

Read More