Law passed allowing some teachers to carry a weapon