Barack ObamaBarack ObamaJuan Williams: Ethics cloud hangs over Trump Week ahead: Regulators await Trump's 'day one' Ex-Clinton aide: Spicer should have resigned rather than lie MORE applauded the 5-4 U.S. Supreme Court decision Thursday establishing that prisoners in Guantanamo Bay have the right to challenge their detention in civilian courts.

Obama attacked John McCainJohn McCainTop Dem comes out against Tillerson ahead of key vote Is McCain confident in Trump? ‘I do not know’ Schumer, Cardin to introduce legislation on Russia sanctions MORE for supporting the "failed policy" of creating a "legal black hole" enacted by the Bush Administration.

"This is an important step toward reestablishing our credibility as a nation committed to the rule of law, and rejecting a false choice between fighting terrorism and respecting habeas corpus," Obama said.

"The fact is, this Administration's position is not tough on terrorism, and it undermines the very values that we are fighting to defend. Bringing these detainees to justice is too important for us to rely on a flawed system that has failed to convict anyone of a terrorist act since the 9-11 attacks, and compromised our core values."