Judge blocks Washington requirement for priests to report child abuse disclosed in confession
(washingtonstatestandard.com)
Not reporting a crime is not the same thing as committing that crime. The issue here is that Catholic priests have a religious obligation not to report crimes they find out about in certain specific circumstances, and this law would prevent them from fulfilling that obligation. There's no claim that actually attacking children is a religious obligation, or that it would be constitutionally protected if it were.