The Catholic Church has issued a warning to its clergy in Washington state: Any priest who complies with a new law requiring the reporting of child abuse confessions to authorities will be excommunicated.
https://www.newsweek.com/catholic-church-excommunicate-priests-following-new-us-state-law-2069039
It means the law works.
If they truly believe in their faith, then they will serve their sentences faithfully, as a show if their devotion to their god.
Protecting child abuse should have a cost regardless of the motivation.