ALBANY, N.Y. — New York state lawmakers say they are optimistic a law to regulate and tax recreational marijuana will be enacted in the coming months, perhaps as part of a new state budget that must be adopted by April.

Gov. Andrew Cuomo, a Democrat, once again included language legalizing marijuana in spending legislation introduced last...