Three journalists who work for the Al-Jazeera news network have been sentenced to prison terms — two lasting seven years and a third lasting 10 — by an Egyptian court. The three were accused of aiding terrorists, a term that in this case applies to the banned Muslim Brotherhood.

From Egypt's Ahram Online:

"The three defendants are Australian Peter Greste, Egyptian-Canadian Mohamed Fahmy and producer Baher Mohamed. They have been on trial along with 17 others on charges of 'spreading false news,' falsely portraying Egypt as being in a state of 'civil war,' as well as aiding or joining the banned Muslim Brotherhood."

The punishment prompted shock and anger in a case that has drawn objections from many news organizations, including NPR.

"It was a devastating scene in the courtroom today," NPR's Leila Fadel reports from Cairo, "the families of the journalists letting out a collective gasp, bursting into tears — shocked that their children, that their brothers, that their loved ones will now spend much of their life ... in jail, for basically doing the job of what we all do as journalists."

The verdicts defy "logic, sense, and any semblance of justice," says Al-Jazeera English Managing Director Al Anstey.

Before the sentences were announced, the defendants had been hopeful they might be released, Leila says. After the terms were read, the journalists were yelling and banging on the bars of the cages that traditionally house defendants in Egyptian courts.

Six others from the network were sentenced to 10-year prison terms after being tried in absentia.

The three Al-Jazeera employees have been held since December. Their arrests came after a crackdown on protests staged by the Muslim Brotherhood, the group that left power when President Mohammed Morsi was ousted by a military coup last July.

The prison sentences were announced one day after U.S. Secretary of State John Kerry visited Cairo, where he met with President Abdel-Fattah el-Sissi. They discussed U.S. military aid to Egypt that was frozen after the democratically elected Morsi was thrown out of office. Kerry said Sunday that he was confident the aid would be restored.

Update at 12:35 p.m. ET: Kerry Calls For Review Of Cases

Criticizing what he calls "chilling, draconian sentences" and a flawed trial, Kerry issued a statement Monday urging Egypt's leaders to review all recent political sentences and to "consider all available remedies, including pardons."

"Injustices like these simply cannot stand if Egypt is to move forward in the way that President al-Sisi and Foreign Minister Shoukry told me just yesterday that they aspire to see their country advance," Kerry said.

Our original post continues:

"The United States has recently closed ranks with Egypt's authorities," The Washington Post reports, "moving to restore suspended military aid despite lingering congressional objections about human rights abuses. All but about $78 million of an initial pledge of more than $600 million has been released."

The journalists' families say the court's sentence will be appealed. Leila tells NPR's Steve Inskeep on today's Morning Edition that the journalists are now hoping el-Sissi might give them a pardon — "as evidence that freedom of speech is actually valued in the new Egypt."

Leila and others who monitored the court sessions say the punishment was rendered despite a lack of hard evidence against the journalists. From The Associated Press:

"The prosecution provided little evidence in the case, showing video footage found in their possession — most of which had nothing to do with the case, including a report on a veterinary hospital in Cairo, Christian life and old footage of Greste from previous assignments elsewhere in Africa."

Copyright 2016 NPR. To see more, visit http://www.npr.org/.