The October 2023 judgment had refused to legalise same-sex marriage