ST. PETERSBURG, Fla. (AP) — The widow of the gunman who slaughtered 49 people at a gay Orlando nightclub was acquitted Friday of helping her husband plot the attack and lying to the FBI afterward, ending the government’s nearly two-year effort to hold someone accountable.

Noor Salman, 31, sobbed upon hearing the jury’s verdict of not guilty of obstruction and providing material support to a terrorist organization, charges that could have brought life in prison. Her family gasped each time the words “not guilty” were pronounced.

On the other side of the courtroom, the families of the victims of the June 2016 Pulse nightclub shooting sat stone-faced and silent.

Relying heavily on an alleged confession from Salman, federal prosecutors had charged that she and her husband, Omar Mateen, had scouted out potential targets together — including Disney World’s shopping and entertainment complex — and that she knew he was buying ammunition for his AR-15 assault-style rifle for a jihadi attack.

The government contended also that she knew Mateen had a sick fascination with violent jihadi videos and an affinity for Islamic State group websites, and that she gave him a “green light to commit terrorism.”

But the defense portrayed her as an easily manipulated woman with a low IQ and argued that she signed a false confession because she was tired after extensive questioning and feared losing her young son.

And in a blow to prosecutors’ case, the FBI itself found that receipts and cellphone signals showed the couple was nowhere near the Pulse on the day Salman said they were.

After the verdict, prosecutors said they were disappointed in the jury’s decision and took no questions.

Defense attorney Linda Moreno said: “We’re so grateful. Noor is so grateful. Her belief in the process was shown. She wants to get back to her son.” Family spokeswoman Susan Clary said Salman’s family “always thought that Noor was the first victim of Omar Mateen.”

“Noor Salman should never have been on trial,” said Ahmed Bedier of the Council on American-Islamic Relations. “Let this verdict serve as a message to law enforcement and prosecutors who railroad and persecute innocent people on little evidence, the people of this great nation will not allow it.”

Mateen, the American-born son of Afghan immigrants, was killed by police in the nightclub attack.

David Weinstein, a defense attorney from Miami who was not involved in the case, said the lack of a recorded confession from Salman probably influenced the jury, which was shown only a written statement.

“As much as we don’t want to admit it, this is the age of the cellphone. It’s ingrained in the minds of jurors, if it’s not recorded, it didn’t happen,” Weinstein said.

Prosecutors had also accused Salman of obstructing the investigation by lying to the FBI. She falsely claimed that her husband didn’t use the internet in their home, that he had deactivated his Facebook account years earlier, that he had one gun when he had three, and that he wasn’t radicalized, they said.

But the defense said Salman, who was born in California to Palestinian parents, was abused by her husband, who cheated on her with other women and concealed much of his life from her.

Defense attorney Charles Swift argued there was no way Salman knew that her husband would attack the nightclub because even he didn’t know it until moments before.

According to prosecutors, Mateen intended to attack Disney World’s shopping and entertainment complex by hiding a gun in a stroller but became spooked by police and chose a new target.

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)