Democratic lawmakers scramble for deal on marijuana legalization