A corruption watchdog has been granted heightened investigatory powers under legislation passed on the final sitting day of a state parliament.