The Supreme Electoral Court declared Lula the next president, with 50.9% of votes compared with 49.1% for Bolsonaro