An Egyptian lawyer who pleaded guilty in New York to conspiring to kill Americans has been sentenced to 25 years in prison.

Federal Judge Lewis Kaplan imposed the sentence on Adel Abdul Bary Friday. He told Bary he was the beneficiary of an "enormously generous plea bargain" that capped his potential sentence at 25 years. Before the September plea, he could have faced life in prison if he had been convicted at trial.

Kaplan said it was likely Bary would face about eight more years in prison because he has been incarcerated since 1999.

Bary admitted spreading claims of responsibility and future terrorist threats after 1998 bombings of U.S. embassies in Kenya and Tanzania that killed 224 people, including a dozen Americans.