Illinois Gov. J.B. Pritzker has signed a law banning firearms advertising that officials determine produces a public safety threat or appeals to children, militants or others who might later use the weapons illegally — opening the door for lawsuits against firearms manufacturers or distributors.