Solution to our legal woes is simply to kill them on the battlefield and spare ourselves the effort of having to transport, house, and feed them for an indefinite period of time while the ACLU pays their legal fees.
Terrorists should be given the same consideration they give to the civilians they target with their homicide attack victims; none, no quarter for these people.