Pro-Beijing legislators have successfully intervened for the first time in a senior judicial appointment in Hong Kong, in what lawyers said was the latest attack on the city’s cherished independent legal system.

Justice Maria Yuen, the wife of Geoffrey Ma, the city’s previous chief justice, was set to be appointed as the next permanent judge on Hong Kong’s Court of Final Appeal, two people familiar with the events told the Financial Times.

But she withdrew her candidacy for the city’s top court after legislators raised concerns over the appointment, the people said. The lawmakers argued that Yuen might be influenced by her husband, who pro-Beijing groups criticised in the past after he defended the neutrality of Hong Kong’s judiciary, according to a person with knowledge of their thinking.

Beijing has cracked down on Hong Kong’s civil and political institutions in response to anti-government protests in 2019, arresting pro-democracy activists, politicians and media figures.

Police on Wednesday arrested an editorial page writer for Apple Daily, a pro-democracy tabloid that has come under repeated attack for its criticism of the government and is on the verge of closing after its asset were frozen.

Police said a 55-year-old man, who Apple Daily said goes by the pen name Li Ping, was arrested on suspicion of conspiring to collude with foreign forces to endanger national security.

China has yet to make significant changes to Hong Kong’s common law legal system. But any such move would concern international companies, many of which have set up regional headquarters in the city in part because of its independent judiciary.

Yuen’s appointment was recommended last year by the Judicial Officers Recommendation Commission, a semi-independent body that considers judicial positions in Hong Kong, and was expected to be approved by Carrie Lam, the city’s chief executive, the two people familiar with the events said.

Hong Kong’s de facto parliament, the Legislative Council, is required to confirm the chief’s executive’s nominees for top judicial positions. In the past, this step has been seen as a formality.

But before Yuen’s recommendation was finalised and formally sent to the legislature for confirmation, pro-Beijing lawmakers including Holden Chow and Elizabeth Quat raised concerns.

The legislature’s panel on administration of justice and legal services, which is dominated by pro-Beijing lawmakers, asked the judiciary and government officials for discussions on the appointment.

Aside from their objection that Ma might continue to have an influence on the court through Yuen, the legislators also said that she took a long time to hand down judgments, according to a person with knowledge of their thinking.

The politician’s inquiries led to Yuen withdrawing her nomination, according to two people with knowledge of the events, the first known case of its kind. Yuen directed all requests for comment on the incident to the judiciary, which declined to elaborate.

The commission subsequently selected another judge, Johnson Lam, who is set to be appointed.

Insiders said Lam was not seen as more conservative or liberal in his judgments than Yuen, nor was there evidence that lawmakers had acted on Beijing’s orders in Yuen’s case.

But senior legal figures were concerned the Yuen case could set a precedent for the Legislative Council, which is dominated by pro-Beijing politicians, to formally review judicial appointments. This in turn could undermine the authority of the JORC, the judicial appointment committee.

One senior legal figure said political review of appointments could lead to judges being chosen based on their loyalty to Beijing rather than their abilities, and could deter the best candidates from coming forward.

Johannes Chan, a legal scholar at the University of Hong Kong, said the Yuen affair was a “very bad and worrying development for judicial independence”.

“It does provide a channel for political interference with the appointment of key judicial personnel by a [legislature] that is dominated by pro-Beijing politicians,” Chan said.

Critics said the government’s decision last year to appoint separate judges for cases involving the national security law, which was introduced in the territory by Beijing last year in the wake of the protests, had already hurt perceptions of judicial independence.

The trial of Tong Ying-kit, the first person charged under the security law, is set to begin on Wednesday in front of these judges.

Legislators Chow and Quat declined to comment on the Yuen case. Carrie Lam declined to comment but said: “all appointments of judicial officers by the chief executive are made in accordance with the Basic Law”, the territory’s mini-constitution.

Geoffrey Ma declined to comment.

The chair of the legislature’s panel on administration of justice and legal services, Horace Cheung, said he had contacted the government and the judiciary to “obtain preliminary views . . . on matters raised by members” of his panel on the nomination process.