South Australia’s parliament has passed controversial changes to limit the investigative powers of the state's independent commissioner against corruption.