Hong Kong's top court on Monday threw out a landmark case that would have given hundreds of thousands of foreign maids the right to seek permanent residency, ending a legal battle that split the city.
In rejecting the bid to give maids the same residency rights as other foreigners, the Court of Final Appeal ruled that there was no need to refer the case to Beijing for a final say, which would have sparked new controversy.
Officials in semi-autonomous Hong Kong had suggested enlisting the advice of the Chinese central government on the immigration question, sparking warnings that they were jeopardising the territory's cherished judicial independence.
But the top court drew a line under the matter by rejecting the two-year legal challenge first brought by Filipina maid Evangeline Banao Vallejos, a mother of five who has lived in Hong Kong since 1986.
"With the court's ruling today, it gave its judicial seal to unfair treatment and the social exclusion of foreign domestic workers in Hong Kong," said Eman Villanueva, spokesman for labour rights group Asian Migrants' Coordinating Body.
He was joined by other members of his group outside court chanting "No to discrimination" and "We are not slaves".
Vallejos won a High Court ruling in 2011 granting her the right to request permanent residency status, which most foreigners can seek after seven years' stay but which is denied to the city's 300,000 foreign domestic helpers.
Activists had hailed the ruling as a big step for equal rights for maids, who are a backbone of society in richer Asian economies and a financial lifeline to their home nations, notably the Philippines and Indonesia.
But the Court of Final Appeal unanimously sided with arguments from the Hong Kong government, which warned that the ruling would swamp the cramped city's population of seven million.
"The FDH (foreign domestic helper) is obliged to return to the country of origin at the end of the contract, and is told from the outset that admission is not for the purposes of settlement and that dependents cannot be brought to reside in Hong Kong," the top court said in a 49-page judgment.
Another Filipino domestic helper Daniel Domingo, whose bid for residency was similarly rejected after living in Hong Kong for 28 years was the case's joint appellant.
The ruling means maids will continue to be specifically excluded from eligibility to settle in Hong Kong, which would give them access to voting rights and the right to live in the former British colony without a work visa.
Lawyer Mark Daly, who represents the helpers, said Vallejos was "speechless" but respected the decision. Vallejos and Domingo were not in court Monday.
"It's regrettable that the opportunity has been lost on this occasion to strike a blow for equality and non-discrimination," Daly said.
The government said it was "carefully" studying the verdict. There are about 1,000 pending applications from foreign maids seeking permanent residency.
Hong Kong's foreign maids receive a minimum wage of HK$3,920 (US$505) a month and benefits such as one guaranteed day off a week, but rights groups say they face discrimination and a lack of legal protection from abusive employers.
The Vallejos case threw new light on Hong Kong's often uneasy relationship with authorities in mainland China and the full extent of the territory's autonomy under its mini-constitution, known as the Basic Law.
While there have been repeated outcries from the Hong Kong public against perceived mainland interference, the southern city's own government stands accused of undermining its autonomy by seeking Beijing's adjudication.
That was the case regarding a long-running legal question about children of Hong Kong permanent residents from mainland China, which like the foreign maids case had created anxiety over the potential strain on the city.