A Hong Kong court has dismissed a government bid to deny same-sex married couples the right to rent and own public housing, saying that it was “discriminatory in nature” and a complete denial of such couples’ rights.