Borders MSP Rachael Hamilton has welcomed Friday’s court ruling that the UK Government’s blocking of controversial gender reforms was lawful.

The Scottish Government mounted the legal challenge earlier in the year after Westminster issued a never-before-used Section 35 order of the Scotland Act to prevent the Gender Recognition Reform (Scotland) Bill from receiving royal assent.

The legislation simplifies the process for transgender people to obtain a gender recognition certificate (GRC) and officially change their legally-recognised sex.

READ MORE: Heavy and persistent rain coming to parts of Borders

In her ruling published on Friday, Lady Haldane, who presided over two days of evidence at Edinburgh’s Court of Session in September, said the challenge “fails”.

She wrote: “I will accordingly sustain the pleas in law for the respondent, repel the pleas in law for the petitioners and dismiss the petition.”

The legislation received cross-party support in Holyrood, passing by 86 votes to 39 last year after MSPs considered 153 amendments to the Bill in a marathon parliamentary session.

READ MORE: Delayed discharge figures paint bleak picture for Borders

Campaigners against the reforms warned the legislation could risk the safety of women and girls while supporters argued it would make the process easier, removing barriers such as seeking a doctor’s diagnosis of gender dysphoria.

Lord Advocate Dorothy Bain, representing Scottish ministers, argued during the hearings that Scottish Secretary Alister Jack used the landmark power because of a “policy disagreement”.

She also argued the order was “unlawful” and was “inconsistent with the constitutional principles” of the UK, effectively preventing Holyrood from passing laws the UK Government did not agree with.

READ MORE: UCI Cycling World Championships boosts Borders economy by £6m

In her ruling, Lady Haldane said: “There is no reference, direct or indirect, to that being a concern motivating the making of the order. Whilst therefore I have no hesitation in accepting that the petitioners hold a sincere view as to what they suspect to be the motivation… I cannot on the material before me conclude that.”

The key argument put forward by David Johnston KC, acting on behalf of UK ministers, was that the policy could have an “adverse impact” on reserved equality legislation.

He said Scottish Secretary Alister Jack had “justified” grounds for using the order, stating it superseded or amended the 2004 Gender Recognition Act by altering the meaning of a GRC by removing the gender dysphoria diagnosis and lowering the application age to 16. UK laws require applications to be aged 18 to apply for a GRC.

Lady Haldane agreed, stating: “The words ‘full gender recognition certificate’ will no longer mean the same thing as they do currently.”

READ MORE: Still time to take part in Tree of Light campaign

She added that “it cannot be asserted the meaning overall” has not changed.

She also said Section 35 “does not” impact on the separation of powers or “other fundamental constitutional principles”.

Writing on X, formerly Twitter, Scottish First Minister Humza Yousaf said: “Today’s judgment confirms beyond doubt that devolution is fundamentally flawed.

“The court has confirmed that legislation passed by a majority in Holyrood can be struck down by Westminster.”

He added, however, that ministers will “respect” the judgment.

Ms Hamilton who is Scottish Conservative spokeswoman on gender reform, said: “This is a very welcome decision.

“The Conservative UK Government was right to challenge this flawed legislation. I am pleased they stepped in to protect women’s rights across the UK.

“The SNP’s dangerous gender self-ID bill, which would have put women’s safety at risk, has been stopped.

“Humza Yousaf must now focus on the big challenges facing Scotland and stop spending so much government time on gender reform.”

Colin Macfarlane, director of nations at LGBTQ+ charity Stonewall, who supplied written arguments to the case, expressed “disappointment”, adding: “This unfortunately means more uncertainty for trans people in Scotland who will be waiting once again to see whether they will be able to have their gender legally recognised through a process that is in line with leading nations like Ireland, Canada and New Zealand.”