New South Wales becomes the final state to overturn laws which had been criticised as archaic.