ALBANY — Gov. Andrew M. Cuomo said Tuesday he was dropping his proposal to legalize marijuana from the proposed state budget.

Cuomo had warned legislative leaders that revenues from legalization of marijuana were needed to help balance a budget with a deficit of more than $3 billion, caused in part by declining revenues. Cuomo estimated a marijuana tax could bring in $300 million over three years.

But the governor said Tuesday he was unable to arrive at a quick resolution of the marijuana issue with state lawmakers.

Cuomo said he no longer is including in his budget proposal revenue from the taxation of marijuana — which was to be dedicated to repair and improvements at the Metropolitan Transportation Authority.

He said he has replaced it with revenue from a proposed pied-à-terre tax. If approved by the legislature, the surcharge would be applied to New York City condominiums and cooperative apartments worth more than $5 million, most of them owned by residents of other countries that use them for business and pleasure trips.

Cuomo and legislative leaders said the marijuana matter still could be worked out after a budget is passed and before the end of the legislative session on June 19, although the complex issue could be more difficult to settle then.

Closed-door budget negotiations among Cuomo, Assembly Speaker Carl Heastie and Senate Majority Leader Andrea Stewart-Cousins continue on the 2019-20 budget, which is due by April 1.

Get the Breaking News newsletter! Get the latest breaking news as it happens. By clicking Sign up, you agree to our privacy policy.

“This legislative session? I don’t know,” Cuomo said.

“I think it was clear early on that the legislative leaders signaled that it was going to be [done] outside budget," he continued. "I think the speaker was quite clear of that, that it would be best to do it outside the budget, that it was complicated and it will take time. But, after the budget, I’m hopeful in the legislative session that it passes.”

Attention now turns to whether a bill to legalize marijuana can be agreed upon by the end of the legislative session.

The issue was popular in the fall elections for Democrats, who won majority control of the State Senate. A poll released Monday by the Siena Research Institute found 53 percent of voters support legalizing marijuana, compared with 44 percent who were opposed.

Some key counties, including Nassau and Suffolk, however, have taken advantage of an “opt-out” provision that could keep manufacturing and retail shops out of them. Others are considering the same.

“Is it a complication? Yes,” Cuomo said. “But I don’t think it’s determinative.”

On Tuesday, the New York Medical Society, the New York State PTA, the state Sheriff’s Association and other groups lobbied to slow or stop the whole measure. Law enforcement officials said there is a need for more laws and technology to detect driving while high. Educators say more programs are needed in schools for youths who will be around more marijuana at home. Addiction specialists fear more marijuana use would lead to an increase in opioid abuse.

In the budget, agreements are struck by leaders behind closed doors under a long-standing practice that combines many measures into a massive budget bill. Outside the budget process, public hearings and debates in committees and on the Senate and Assembly floor require votes by each legislator on each bill.

“The budget is often the easiest vehicle for a Legislature to do something that is controversial,” Cuomo said. “When it’s not done in the budget, then it is, in my opinion, harder to do as a stand-alone bill because it’s now just marijuana . . . and it’s a more difficult vote because it’s clear what the vote is about. The budget [vote] swallows many issues.”

Legislative leaders have said legalizing marijuana would be a complex, difficult task to pass in the budget, in which state law gives extraordinary leverage to governors. On Tuesday, Heastie and Stewart-Cousins said policy issues must be given enough time to evolve into good legislation, even if that means approving them after the budget.

“I don’t know if six weeks is enough time to get it done,” Heastie said Jan. 31, days after Cuomo proposed legalized marijuana in his State of State speech. “If it can happen, great. But if not, we’ll deal with it. But more than getting things done quickly, it’s better to get things done correctly.”

The leaders didn’t immediately comment on Cuomo’s statement Tuesday.