Judge rules Madison teachers only need 27 hours of training to carry guns