The law grants same-sex spouses the same rights as married heterosexual couples