Hong Kong's top court ruled Tuesday to affirm housing and inheritance entitlements for same-sex couples, siding against the government in favor of LGBTQ+ rights protection.

The ruling comes after a landmark 2023 decision — also by the Court of Final Appeal — shut the door on legalizing same-sex marriage, but gave the government two years to set up a framework for other rights for such couples.

It marked the end of a six-year legal battle that began when resident Nick Infinger took the government to court over a policy that excluded him and his partner from public rental housing on the grounds they were not an "ordinary family."