It is not the proclamation of the Judge's views that is at issue. It is the proclamation of the state's views, with the Judge deciding which views are the state's, and which are not.You mean, like the SCOTUS deciding that the US Federal view prohibits criminalizing sodomy, or permits racial discrimination in pursuit of diversity?
I must have missed something when I read those opinions. Where did the Court rely on the views of one particular religion in reaching those decisions?