A national anti-corruption commission appears set to become law after the government's legislation passed the senate with amendments.