Connecticut lawmakers pass sweeping gun measure