WASHINGTON — House Speaker Paul Ryan said Wednesday Republicans are taking legal steps to stop President Obama from closing the U.S. prison at Guantanamo Bay, Cuba, a day after the president unveiled his plan to shutter the facility and move the detainees to the United States.

Ryan told reporters that lawmakers have the votes to block Obama’s plan in Congress and enough votes to override any veto. Separately, the Wisconsin Republican said the GOP is “preparing our legal challenge” to ensure the prison remains open and detainees aren’t moved to the U.S.

Earlier this month, House Republicans awarded the Jones Day law firm a $150,000 contract to perform the legal work in case Obama tries to move Guantanamo detainees to federal prisons.

“These detainees cannot come to American soil,” Ryan said.

Obama has pushed to fulfill a 2008 campaign promise and close Guantanamo, arguing that the facility is a recruitment tool for terrorism worldwide and opposed by some allies. The president has faced strong opposition in Congress, where Republicans and some Democrats maintain there is no alternative and argue they don’t want these detainees transferred to U.S. prisons, even maximum security facilities.

Under Obama’s plan, roughly 35 of the 91 current prisoners will be transferred to other countries in the coming months, leaving up to 60 detainees who are either facing trial by military commission or have been determined to be too dangerous to release but are not facing charges.