A challenge for any democratic republic is to establish modes of governance that can effectively defeat or mitigate national security threats while also preserving freedoms and public accountability. To many, especially during national security crises, courts are expected to act as guardians of liberty and the boundaries of state power.