New York state legislature passes bill to legalize recreational marijuana