Andy Burnham refused a senior aide’s advice to renounce his Catholic faith to advise the King on Church of England appointments, choosing instead to change the law that barred him from the role.

The exchange at Buckingham Palace prompted legislation to remove restrictions on Catholics and Jews participating in senior Church appointments. The bill has completed its parliamentary stages and awaits royal assent, with the change expected to take effect within weeks.

Burnham, the UK’s first lifelong Catholic prime minister, received the advice when he met King Charles for his appointment this summer. He said his mother, Eileen, would never forgive him for abandoning his faith. When told he would be the first prime minister since Henry VIII’s reign to take such a step, he replied that he would change the law instead.

After leaving the Palace on 20 July, Burnham is understood to have asked his chief whip, Anneliese Midgley, to pursue the change.

The restrictions sit within the Roman Catholic Relief Act 1829 and the Jews Relief Act 1858. They prohibit Catholics and Jews from involvement “directly or indirectly” in appointments to senior Church posts, including archbishop of Canterbury. Breaching them carries the stated penalty of being “deemed guilty of a high misdemeanor, and disabled for ever from holding any office, civil or military, under the Crown”.

Those Acts removed barriers to public life, including prohibitions on becoming MPs, while retaining a religious qualification for advising on Church appointments. The historical roots reach back to Henry VIII’s break with Rome and establishment as the Church’s formal head.

The repeal has attracted broad Commons support. Mike Wood, the Conservative shadow Cabinet Office minister, said restrictions retained as nineteenth-century political compromises had become “an archaic anomaly and unacceptable discrimination”.

The issue had previously had little practical effect. Benjamin Disraeli was of Jewish descent but had been baptised into the Church of England. Tony Blair became Catholic in 2007, months after leaving office. Boris Johnson was baptised Catholic but later confirmed into the Church of England. Former Conservative special adviser Rajiv Shah said Johnson’s position was that “whatever canon law might say, in the eyes of English law he remained Anglican”.

The Church Appointments (Repeal of Discriminatory Provision) Bill removes the faith-based restriction rather than the prime minister’s advisory role. Until it takes effect, Burnham has transferred those responsibilities to Lord Chancellor Alex Norris: parliamentary approval has not yet removed the legal barrier.