‘Serious’ sex offenders can attend church with children present: Judge