Kentucky lawmakers pass flurry of bills before midnight