The sentencing of the firebrand ex-president comes after a landmark trial that divided the nation and drew US fury.