Hong Kong’s top court ruled on Tuesday that the city’s government must establish a framework to legally recognize same-sex partnerships, delivering a partial victory to L.G.B.T.Q. activists. The ruling underscores how Asia’s conservative landscape is evolving when it comes to gay rights.