Lawmakers in New York plan to approve a bill later Thursday that will decriminalize small amounts of marijuana and allow for past low-level convictions related to the drug to be expunged.

The bill gained momentum after lawmakers said Wednesday they didn’t have the votes to pass a broader measure that would have established a regulatory framework to legalize and tax marijuana.