Luiz Inácio Lula da Silva secured a fourth term in Brazil after a dramatic electoral comeback against Flávio Bolsonaro.