IANAL, but I believe such behavior is ALREADY outside a LEO's indemnification. Something about acting "under color of law", when the action is clearly illegal...
If only there were prosecutors who were more loyal to the law than to LEOs.
If the measures I advocate were enacted the rogue and negligent LEOs would have their personal assets and pensions subject to civil litigation. Facing destitution is a very sobering influence.