The irony is the Court intentionally misinterpreted the Detainee Treatment Act that Congress passed to reach the decision.
Interesting, isn't it, that the least known fact about the decision is that the Congress took jurisdiction away from the Supremes, and they asserted the right to decide it anyway. Congress should immediately pass an amendment to that law saying, "no, we meant to take away jurisdiction from pending cases, too." In addition they can pass a law that the Geneva convention does not apply to enemy combatants, and deny jurisdiction over the issue to the courts, "and, by the way, that means pending cases you jerks."
One of the things that people need to realize about our system is that each of the three branches, including the judiciary, is capable of violating the constitution. The other branches have to protect themselves when this happens, through their vaunted checks and balances. When the judiciary does it, the executive is duty bound, by his oath of office and his need to preserve the President's powers for his successors. A President should explain what he is doing and why, and if he is clearly right, as he is in this case, he can get away with it and make the court look bad in the process. That will tend to deter the court from overstepping its bounds.