The measure would have singled out trans students for discrimination, even though state law currently forbids it.