A leftist party led by Dilma Rousseff that rose to power vowing to stamp out the corruption of a privileged political elite ended up embracing its predecessors’ practices.