Rousseff’s slim, three-point margin over centrist candidate Aecio Neves came largely thanks to gains against inequality and poverty since the Workers’ Party first came to power in 2003.