New Jersey to legalize medical marijuana