The man who planted two bombs in Manhattan last summer likely will spend the rest of his life in prison after a federal jury convicted him Monday, but his legal battles are not yet over.

Ahmad Khan Rahimi, an Afghanistan native whom prosecutors say was inspired by the Islamic State and al-Qaida, still faces state and federal charges in New Jersey related to other explosives and to the shootout that led to his arrest.

The 29-year-old Rahimi has been accused of bombing, weapons of mass destruction and related charges in New Jersey federal court for explosives found in Seaside Park and Elizabeth in September 2016. He has not been indicted on or entered a plea to those charges, court records show.

The Sept. 19, 2016, shootout in Linden that led to Rahimi's arrest resulted in an indictment on five counts of attempted murder of a law enforcement officer and related weapons charges. A Superior Court judge in June rejected Rahimi's request to have the indictment thrown out.

The U.S. Attorney's Office in Newark and the Union County Prosecutor's Office declined to provide further information about their cases.

Robert Mintz, a former federal prosecutor, said the prosecutors in those cases will probably consider whether Rahimi's conviction is likely to survive an appeal when they decide whether to move forward with the charges.

"The calculus that prosecutors are likely to engage in will be to look at the case in the Southern District of New York and determine how confident they are that the case will hold up on appeal and whether it's worth the time and resources to try him on these other charges as essentially a backstop," said Mintz, who is now a managing partner at McCarter & English in Newark.

Monday's conviction on charges including using a weapon of mass destruction and bombing a public place came after a two-week trial over the Manhattan bombs, one of which injured 30 people when it detonated in the Chelsea neighborhood on Sept. 17, 2016.

Mintz said New Jersey prosecutors will likely choose whether to move forward with their cases after Rahimi is sentenced in New York. Several of the charges of which Rahimi was convicted carry mandatory life sentences.

The federal charges in New Jersey center partly on a bomb that on Sept. 17, 2016, exploded before a charity 5K race in Seaside Park, cancelling the event and evacuating the area. No one reported injuries.

Hours later, an explosive went off near 6th Avenue and West 23rd Street in Manhattan. Police also found another bomb four blocks away that did not detonate.