New York state has legalized recreational marijuana for adults and will expunge the criminal records of people previously convicted of crimes that would be legal under the new law.

Gov. Andrew Cuomo signed the legislation on Wednesday, roughly 12 hours after the Legislature approved it. New York is now the 15th state to allow recreational marijuana for adults, ABC reports.

"This is a historic day in New York -- one that rights the wrongs of the past by putting an end to harsh prison sentences, embraces an industry that will grow the Empire State's economy, and prioritizes marginalized communities so those that have suffered the most will be the first to reap the benefits," Cuomo said in a statement.

Under the final legislation, New Yorkers will be allowed to possess 3 ounces of marijuana and grow up to three mature pot plants at home, with a limit of six per household.