In this Nov. 10, 2014 file photo, Rasmieh Odeh speaks to the media outside federal court in Detroit. AP Photo/Carlos Osorio, File DETROIT (Reuters) - A Palestinian-born activist who spent 10 years in an Israeli prison on a terrorism conviction before moving to the United States and gaining citizenship pleaded guilty on Tuesday to immigration fraud, agreeing to be deported rather than sent to prison.

Rasmieh Yousef Odeh, 69, is scheduled to be sentenced on Aug. 17 and subsequently stripped of her US citizenship and expelled from the country.

Odeh, who once served as the associate director for the Arab American Action Network in Chicago and was involved last month in organizing rallies opposing President Donald Trump's policies, said she did not know yet where she would go. Her attorney told US District Judge Gershwin Drain that Jordan had agreed to take her in.

"This is very unjust, very wrong," Odeh muttered, wiping tears and embracing dozens of supporters as she left the courtroom. "That they can just send you away from this country after 24 years that I’ve been living here, it is wrong."

The case revolves around the 10 years Odeh spent in an Israeli prison, after confessing to taking part in a Popular Front for the Liberation of Palestine 1969 supermarket bombing in Israel that killed two people, as well as a plot to bomb the British Consulate in Jerusalem.

Rasmieh Yousef Odeh, 67, addresses her supporters outside federal court in Detroit, Monday, Nov. 10, 2014, after the Palestinian immigrant was found guilty of immigration fraud for failing to disclose her conviction and imprisonment in a Jerusalem supermarket bombing that killed two people. AP Photo/Carlos Osorio

Odeh had said her confession to the bombing was the result of torture by the Israeli military, including rape and electric shocks. She was released as part of a prisoner swap between Israel and the Palestinians.

Federal prosecutors said she broke U.S. law when she failed to reveal her criminal history when she immigrated from Jordan in 1995 and again when she was naturalized as a US citizen in 2004.

She was convicted in November 2014 of unlawful procurement of naturalization. That conviction, which brought with it an 18-month prison term and deportation, was vacated by the 6th US Circuit Court of Appeals in February 2016.

The appeals court said Drain had wrongly denied Odeh the chance to present evidence at trial that she did not disclose her Israeli prison term because she suffered from post-traumatic stress disorder.

Even with the lengthy negotiations that yielded Tuesday’s deal, Odeh had a difficult time verbally stating her guilt, initially saying only: "I signed the agreement."

Drain eventually accepted as her guilty plea the words: "The agreement says I am guilty and I signed it."

(Editing by Scott Malone and Peter Cooney)