The bill was opposed by leftist opponents led by the Workers Party, which held up a proposal first past in 1998 during its 13 years in power that ended last year with the impeachment of former President Dilma Rousseff.