You may be confusing the US Constitution with the Law of Armed Conflict.
Obama has been wanting these terrorists to have their day in court to bash the US since before he took office. Now he can get it and not have to deal with the consequences of bringing these people into the US prison system.