Brazilians on Sunday propelled right-wing populist Jair Bolsonaro to the presidency, marking a dramatic swing to the right in the world’s fourth-largest democracy.