Same-sex couples gain equal right to marry