After 580 days in solitary confinement, Brazil’s former president vows to oppose the country’s ultra-rightwing government