But you can be "indemnified", which I think is the correct legal term for legislating sure that illegal acts by certain people in certain circumstances cannot be judged to be illegal.