Brazilian lawmakers rejected corruption charges against President Michel Temer on Wednesday evening, shelving a case that had threatened to oust a center-right leader who investors hope will bring Brazil's budget deficit under control.

The corruption case, involving the payment of bribes by meat packer JBS SA, had paralyzed Temer's reform agenda for six months and weakened his government.

The lower house of Brazil's Congress, which has the authority to decide whether a president should stand trial by the Supreme Court, voted 251-233 to throw out charges of obstruction of justice and organized crime which were filed by federal prosecutors.