Hong Kong court says gay couples have right to public housing