I don’t understand the point to begin with. Assume competent malice by the police. What do they stand to gain by unlawfully photographing journalists that they could not have obtained by simply lawfully checking their credentials?
Now they know who they are, and where they live. It's a classic intimidation tactic.
It was just the photography that wasn’t okay. However, what do you need a photograph for when you can just go pull up their file back at the station using the name on the credentials you just took down?