The former president of Brazil, Luiz Inácio Lula da Silva, was found guilty of corruption and money laundering on Wednesday and sentenced to nearly 10 years in prison, a stunning setback for a politician who has wielded enormous influence across Latin America for decades.