House Speaker Paul Ryan, R-Wis., said Obama's plan to close the Guantanamo Bay detention facility "fails to provide taxpayers with critical details required by law," and warned it would be illegal to transfer the 91 remaining prisoners to the United States.

"It is against the law, and it will stay against the law, to transfer terrorist detainees to American soil," Ryan said in a statement issued Tuesday. "We will not jeopardize our national security over a campaign promise."

Ryan and other Republicans have accused Obama of playing politics with the prison. Obama has been promising to close it since his first campaign for president in 2007.

Democrats praised Obama's announcement Tuesday that he plans to close the prison, but Obama has not outlined how he plans to handle the remaining prisoners.

"His proposal fails to provide critical details required by law, including the exact cost and location of an alternate detention facility," Ryan said.

Congress has passed several measures in recent years that prohibit the transfer of Guantanamo Bay prisoners to the United States.

"Congress has left no room for confusion," Ryan said.