Stability of anisotropic-pressure tokamak equilibria to ideal ballooning modes