The whole point of the confessional is that the priest doen't tell anyone. If there are crimes being committed , then that's the priest's burden.
I can't see how the government can enforce this law.
I'm not a catholic - but I can see that its a set of beliefs which mean a lot to a lot of people.