U.S. District Judge Jane Magnus-Stinson sided on Friday with John Walker Lindh, an American convicted of fighting alongside the Taliban.
The judge ruled that the prison was violating Lindh’s and other Muslim inmates’ religious freedom by banning them from engaging in daily ritual prayer.
Lindh is serving a 20-year sentence for aiding the Taliban during the 2001 U.S.-led invasion of Afghanistan.
He sued the government after he was barred from praying with other inmates, which he said violated his religious rights. Prison officials had argued that it would be dangerous, unaffordable and unfair to other inmates.