(Adds details on bill, Republican opposition)

By Matt Spetalnick

WASHINGTON, April 16 (Reuters) - The United States on Saturday transferred nine Yemeni men to Saudi Arabia from the U.S. military prison at Guantanamo, including an inmate who had been on a hunger strike since 2007, under a long-sought diplomatic deal between Washington and Riyadh, U.S. officials said.

The transfer, which took place just days before President Barack Obama's visit to Saudi Arabia for a summit of Gulf Arab allies, marked the latest step in his final push to close the controversial detention center at the U.S. naval base in Cuba before he leaves office in January 2017.

The Saudis agreed, after lengthy negotiations that at one point involved Obama and Saudi King Salman, to take the nine Yemenis for resettlement and put them through a government-run rehabilitation program that seeks to reintegrate militants into society, the officials said.

The group announced by the Pentagon was the largest shipped out of the Guantanamo Bay prison since Obama rolled out his plan in February aimed at shutting the facility. But he faces stiff opposition from many Republican lawmakers as well as some fellow Democrats.

There are now 80 prisoners at Guantanamo, most held without charge or trial for more than a decade, drawing international condemnation.

The most prominent of the transfers was Tariq Ba Odah, a 37-year-old Yemeni whom the military had been force-feeding daily since he went on a hunger strike in 2007. His legal team said he was down to 74 pounds, losing about half of his body weight.

Ba Odah's lawyer, Omar Farah, said the U.S. government had "played Russian roulette" with his client's life and that his transfer "ends one of the most appalling chapters in Guantanamo's sordid history."

His case was a source of legal wrangling between the U.S. Department of Justice and his lawyers, who had unsuccessfully sought his release on humanitarian and medical grounds, and also created divisions within the Obama administration.

TRANSFERS PRECEDE OBAMA'S VISIT

The transfers took place as Obama prepared to visit Saudi Arabia on Wednesday and Thursday for a summit with the Gulf Cooperation Council at a time when U.S.-Saudi relations have been strained by the nuclear deal with Iran, their Shi'ite regional rival, and what Riyadh sees as a weak U.S. response to Syria's civil war.

The Saudis have also threatened to sell of hundreds of billions of dollars' worth of American assets should the U.S. Congress pass a bill that could hold the kingdom responsible for a role in the Sept. 11, 2001 attacks, the New York Times reported. urn:newsml:reuters.com:*:nL2N17J0JF

A U.S. official said the transfer - the result of years of negotiations, including an Oval Office appeal by Obama to the visiting Saudi monarch in September and visits to the kingdom by U.S. Secretary of State John Kerry - was not orchestrated for Obama's trip and the timing was a coincidence.

Republicans have expressed opposition to such transfers, voicing concern that more released Guantanamo prisoners will return to militant activities.

But the transfer was considered a breakthrough since Riyadh had long resisted taking any non-Saudi nationals from the prison.

All nine men have family ties in Saudi Arabia, which borders Yemen. The Obama administration has ruled out sending Yemenis to their homeland because it is engulfed in civil war and has an active al Qaeda branch.

"The United States is grateful to the government of the kingdom of Saudi Arabia for its humanitarian gesture," the Pentagon said in a statement. Guantanamo prisoners were rounded up overseas when the United States became embroiled in wars in Iraq and Afghanistan following the Sept. 11, 2001, attacks on New York and Washington. The facility, opened by Obama's predecessor George W. Bush, came to symbolize aggressive detention practices that opened the United States to accusations of torture.

Obama's plan for shuttering the facility calls for bringing the several dozen remaining prisoners to maximum-security prisons in the United States. U.S. law bars such transfers to the mainland but Obama has not ruled out using executive action to do so.

Ba Odah, who was captured by the Pakistani army along the Afghan border and was accused of receiving weapons training in order to fight with the Taliban, had been force-fed by nasal tube since he stopped taking solid food in protest at his detention. He was cleared for transfer in 2009.

Pentagon officials had said he was receiving proper care. But his case was seen, until a recent uptick in transfers, as evidence of the Pentagon resisting Obama's efforts to close the detention center.

The other prisoners involved in the transfer were identified as: Umar Abdullah Al-Hikimi, Abdul Rahman Mohammed Saleh Nasir, Ali Yahya Mahdi Al-Raimi, Muhammed Abdullah Muhammed Al-Hamiri, Ahmed Yaslam Said Kuman, Abd al Rahman Al-Qyati, Mansour Muhammed Ali Al-Qatta, and Mashur Abdullah Muqbil Ahmed Al-Sabri.

They were among a group of lower-level inmates, now numbering 26 and mostly Yemenis, who have been cleared for transfer by a U.S. government inter-agency task force. U.S. officials have said they expect to move out all members of that group by this summer.

(Additional reporting by David Rohde; editing by Grant McCool, G Crosse) ((Matt.Spetalnick@thomsonreuters.com; +1-202-898-8300; Reuters Messaging: matt.spetalnick@thomsonreuters.com@reuters.net))

Keywords: USA GUANTANAMO/