Let's say the hiring practice of a church is unlawful, it would not be constitutional law that was violated. Now the Church might sue and say their freedom to excercise their faith is being violated. If a judge rules in good faith against the Church and a higher court reverses that decision the judge should not be found any wrongdoing. I did not mean incorrect rulings should be punished, I meant malicious ignorance and violation of the constitition should be punished.
With your example, if it is found that the law was crafted with intentional ignorance of freedom of religion, then the lawmakers that introduced it should face punishment, if the judge also intentionally ignored this right (and this can be proven) not because of their understanding of the law but because their intentional ignorance of the right, that judge should be punished. And a law enforcer that intentionally violates citizens' rights should also face punishment.
With your example, if it is found that the law was crafted with intentional ignorance of freedom of religion, then the lawmakers that introduced it should face punishment, if the judge also intentionally ignored this right (and this can be proven) not because of their understanding of the law but because their intentional ignorance of the right, that judge should be punished. And a law enforcer that intentionally violates citizens' rights should also face punishment.