The measures represent the biggest steps by lawmakers to crack down on illegal fireworks in more than two decades.