The legislation was introduced after the deadly rampage in Isla
Vista, Calif., in May in which 22-year-old Elliot Rodger shot and stabbed six people to death around the campus of the University of California, Santa Barbara.
State Assemblywoman Nancy Skinner, a Democrat who sponsored the bill, said in an interview the law would help prevent similar situations. Mr.