Tennessee legislators pass bill allowing teachers to carry guns