The 70-year-old former Brazilian president was sentenced to 27 years in prison for plotting a failed coup.