This ruling concludes years of legal battles over policies that excluded same-sex married couples from receiving subsidised housing and inheritance protections.