The risk to liberty is not so much the failure to grant privileges to insurgents as it is the failure to stop insurgencies.
The risk is to be assessed by the Executive. The Judiciary should not be taking the authority to evaluate the risk away from the Executive. If individual abuses are claimed, they can be handled by the Judiciary through the court system.