ByMichael Tarm, Associated PressJuly 21, 2015

Former Illinois Gov. Rod Blagojevich speaks to the media outside his home in Chicago on March 14, 2012, as his wife Patti wipes away her tears a day before he was to report to a prison in Littleton,. Colo., to begin a 14-year prison sentence on corruption charges. Lawyers for Blagojevich are working to meet a deadline Monday, July 15, 2013, to file what could be a 100-page appeal calling for the ex-governor's corruption convictions to be tossed or for his 14-year sentence to be reduced.

CHICAGO — A federal appeals court Tuesday overturned some of the most sensational convictions that sent former Illinois Gov. Rod Blagojevich off to a lengthy term in prison, ruling that the Democrat did not break the law when he sought to secure a Cabinet position in President Barack Obama's administration in exchange for appointing an Obama adviser to the president's former U.S. Senate seat.

The 7th U.S. Circuit Court of Appeals in Chicago also ordered the resentencing of Blagojevich, offering the 58-year-old a ray of hope that he could end up serving less than his original 14-year term. He has served more than three years so far.

The three appellate judges dismissed five of 15 corruption counts Blagojevich was convicted of. But the panelists also suggested the original sentence wasn't necessarily extreme, even when factoring in the newly tossed convictions.

The unanimous ruling addressed a key question: Where is the line between legal and illegal political wheeling and dealing? The panel's answer: When it came to Blagojevich's attempt to land a Cabinet seat, he did not cross the line. His attempts to trade the Senate seat for campaign cash, however, were illegal, the court concluded.

Blagojevich floated the idea of a Cabinet job in exchange for appointing Obama friend and adviser Valerie Jarrett to Obama's vacant Senate seat. After Blagojevich's arrest, the seat went to Roland Burris, who served less than two years before Republican Mark Kirk was elected as his successor in the heavily Democratic state.

In its ruling, the appeals court pointed to allegations that President Dwight Eisenhower named Earl Warren to the U.S. Supreme Court after Warren offered Eisenhower key political support during the 1952 campaign. The judges said that under the logic used to charge Blagojevich, Eisenhower and Warren might have been convicted.

"If the prosecutor is right, and a swap of political favors involving a job for one of the politicians is a felony, then ... both the President of the United States and the Chief Justice of the United States should have gone to prison," the ruling says.

Still, the ruling wasn't a resounding win for Blagojevich.

The appellate judges upheld allegations that he sought to sell the Senate seat. He had argued he didn't break the law because he never stated explicitly that he was willing to trade an appointment for campaign cash. The panel balked at the notion that crimes are crimes only if they are overtly stated.

Prosecutors could appeal the ruling to the Supreme Court or could choose to retry Blagojevich on the dropped counts, though prosecutors often decline to retry a case if most of the counts are upheld. A spokesman for the U.S. attorney's office declined to comment on the ruling.

The two-term governor proclaimed his innocence for years — on television and on the stand at his decisive retrial in 2011, where a sometimes-tearful Blagojevich said he was a flawed man but no criminal.

Jurors convicted him of 18 counts; 11 dealt with charges that he tried to swap an appointment to the seat for campaign cash or a job. He was also convicted of other pay-to-play schemes, including the attempted shakedown of the Children's Memorial Hospital in Chicago for a contribution to Blagojevich's campaign. Those counts were all affirmed by the appellate court.

After his arrest in December 2008, Blagojevich became the butt of jokes on late-night TV, including for his well-coiffed hair and his foul-mouthed rants on FBI wiretaps.

Blagojevich began serving his sentence at a prison near Denver on March 15, 2012. Before the appeal, his estimated release date was 2024; he would be 67.

Blagojevich's brother, Robert Blagojevich said he hopes his brother's time in prison is shortened.

"I'm hopeful that this process will render some semblance of justice for my brother, finally," he said.