New York lawmakers agree to legalize the sale of recreational marijuana