State lawmakers issued the ban in response to gun violence and mass shootings such as the July 4th parade massacre in Highland Park last year, which left seven people dead and 36 injured.