I have, to some degree, been on both sides of this situation. Many years ago, mid-sixties, I did quite a bit of wedding photography. At that time it wasn't unusual for many churches, not just Catholic or Episcopal but many evangelical churches, did not allow photography during most of the service. It was considered a religious service, a worship service if you please, where a couple were taking solemn vows before God. Most photographs were made before or after the ceremony. Of course that was in film days when we had to make every shot count.
I changed my career but still, on rare occasion for close friends, shot wedding pictures. I also shoot pictures at other religious events but things are a lot looser now than in those days.
As an ordained minister I have also officiated at many weddings. I usually talk to the photographer before hand and have never had any issues. But I still consider it a solemn occasion and most photographers understand that. I also don't consider it so solemn that God is offended by photography taking place. It just can't be disruptive.
I think the priest went a little overboard and could have handled it better but the photographer should also have been more circumspect.