More than eight years after Army Sgt. Bowe Bergdahl walked off his base in Afghanistan -- and unwittingly into the clutches of the Taliban -- Bergdahl walked out of a North Carolina courtroom a free man on Friday.
Bergdahl, who pleaded guilty to endangering his comrades, was fined, reduced in rank to E1 and dishonorably discharged -- but he received no prison time.
As part of the sentence, Bergdahl will forfeit his pay of $1000 per month for ten months.
Bergdahl was shaking and appeared emotional as the verdict was quickly read.
President Trump, aboard Air Force One en route to meetings in Asia, tweeted his disapproval with the sentence.
"The decision on Sergeant Bergdahl is a complete and total disgrace to our Country and to our Military," Trump wrote.
Prosecutors had requested a 14-year prison term following a week of emotional testimony from the survivors who were wounded during missions to find Bergdahl after he left the base in June 2009. Bergdahl's defense team has asked for no prison time.
Bergdahl faced up to life in prison for desertion and misbehavior before the enemy. Wearing a blue dress uniform, Bergdahl appeared tense during the short morning session. He clenched his jaw as if grinding his teeth, then grimaced and looked at the floor when he walked out of the courtroom.
In closing arguments, defense attorneys argued that Bergdahl already had suffered enough confinement during five years of brutal captivity by Taliban allies. They asked the judge for a dishonorable discharge and no prison time. Their argument for leniency also cited harsh campaign-trail criticism by Donald Trump and Bergdahl's mental disorders.
Capt. Nina Banks, a defense attorney, said it wouldn't be justice to rescue Bergdahl from the Taliban "only to place him in a cell" now.
"Sgt. Bergdahl has been punished enough," Banks added. "Sgt. Bergdahl paid a bitter price for the choices that he made."
During the multiday sentencing hearing, Bergdahl himself testified that he was sorry for the wounds suffered by searchers. He also described brutal beatings by his captors, illness brought on by squalid conditions and maddening periods of isolation, most of it in a cramped cage.
A psychiatrist testified that Bergdahl's decision to leave his post was influenced by a schizophrenia-like condition called schizotypal personality disorder that made it hard to understand consequences of his actions, as well as post-traumatic stress disorder brought on partly by a difficult childhood.
Prosecutors asked for a sentence of 14 years in prison, citing serious wounds to service members who looked for Bergdahl.
"Sgt. Bergdahl does not have a monopoly on suffering as a result of his choices," said Maj. Justin Oshana, a prosecutor. Contrasting Bergdahl to the wounded searchers, he added, "The difference is, all the suffering stems from his choice."
Oshana also cited Bergdahl's own words to argue against the idea that his thinking was clouded. On a courtroom monitor he displayed quotes from an initial investigation after Bergdahl returned to the U.S. Bergdahl, who has said he walked off to draw attention to problems with his unit, described to an investigating officer how he envisioned the missing-soldier alert unfolding.
Bergdahl pleaded guilty Oct. 16. The judge has wide discretion on sentencing because he didn't strike a deal with prosecutors to limit his punishment. A bad conduct or dishonorable discharge would deprive Bergdahl of most or all his veterans' benefits.
The 31-year-old soldier from Hailey, Idaho, was brought home by President Barack Obama in 2014 in a swap for five Taliban prisoners at Guantanamo Bay. Obama said at the time that the U.S. does not leave its service members on the battlefield.
Republicans roundly criticized Obama, and Trump went further while campaigning for president, repeatedly calling Bergdahl a traitor who deserved death.
-- Fox News' Terace Garnier and The Associated Press contributed to this report.