The New Jersey Senate scrapped plans to vote on a bill legalizing recreational marijuana, dealing a blow to Gov. Phil Murphy.

Murphy campaigned on legalizing pot and had been calling lawmakers to persuade them to back the legislation.

It became clear the governor’s last-minute push failed when the Democratic-controlled state Senate declined Monday to bring it up for a vote, citing a lack of support, the Wall Street Journal reports.

“History is rarely made on the first attempt,” Murphy said. “But eventually barriers do fall to those who are committed to breaking them down. Certainly, I’m disappointed. But we are not defeated.”

Under the legislation, the state would collect an excise tax of $42 for an ounce of the drug, and cities and towns would receive tax revenue for hosting cultivators, wholesalers and retailers.

It would also allow for the dismissal of marijuana convictions and pending charges for up to five pounds of the drug.

“I may have underestimated the challenge in getting this passed,” said Senate President Steve Sweeney, a Democrat. “We’ll be back with this. Anyone who thinks this is dead is wrong.”

Efforts to legalize adult-use cannabis in New York have faltered amid disputes over revenue, who will have access to licenses and intensifying opposition from opponents.

The Connecticut legislature’s joint General Law Committee approved a measure Monday that would legalize recreational marijuana. Legalization opponents applauded the decision to pull the vote in New Jersey.

“They told us legalization was inevitable, and this action proves them wrong,” said Kevin Sabet of Smart Approaches to Marijuana, which opposes legalizing recreational pot.

While lawmakers remain skittish about legalizing marijuana, New Jersey residents have said they support it. A Monmouth University poll in February found that six out of 10 residents back legalization.

But to anyone who figured the path of legalizing recreational marijuana use ran along blue state-red state lines, a sudden setback for pot advocates in New Jersey may show the issue isn’t so black-and-white, AP reports.

See Also: Will Marijuana Legalization Have a ‘Gateway’ Effect?

Additional Reading: Why 2018 Marked High Point in Marijuana Legalization