For example

Because the damages were imposed by the judge as part of his official duties, he could not be sued for them.