Trump criticised the way the vote was conducted after Lula defeated right-wing senator Flavio Bolsonaro, the son of former Brazilian president Jair Bolsonaro, a close ally of him.