New Jersey’s highest court ruled Wednesday that gay couples are entitled to the same rights as heterosexuals, but that lawmakers must determine whether the state will honor gay marriage or some other form of civil union.

Advocates on both sides of the issue believed the state posed the best chance for gay marriage to win approval since Massachusetts became the only state to do so in 2003 because the New Jersey Supreme Court has a history of extending civil rights protections.