Judge criticises Carey and says religions are equal in law