NJ lawmakers end budget impasse