Before Thursday only one US state -- Massachusetts -- allowed gay marriage , although California , New Jersey and Vermont have legislation which grants same-sex partners many of the same legal rights as married couples .