Petra Costa’s documentary chronicles the impeachment of one president, the imprisonment of another and the triumph of authoritarian politics.