At first glance, this law is pointless. Police already have immunity from suit for actions carried out as part of their official duties. The exception is if they violate a person's civil rights. So either the officer is carrying out duties (and is immune) or is actually violating civil rights and is already liable. Governmental immunity has been found in the US Constitution and cannot be revoked by the states.