A federal judge granted a preliminary injunction late Wednesday to block provisions of the 2012 National Defense Authorization Act that would allow the military to indefinitely detain anyone it accuses of knowingly or unknowingly supporting terrorism.

Signed by President Barack Obama on New Year’s Eve, the 565-page NDAA contains a short paragraph, in statute 1021, letting the military detain anyone it suspects “substantially supported” al-Qaida, the Taliban or “associated forces.” The indefinite detention would supposedly last until “the end of hostilities.”

In a 68-page ruling blocking this statute, U.S. District Judge Katherine Forrest agreed that the statute failed to “pass constitutional muster” because its broad language could be used to quash political dissent.