Dependence of Confinement and Stability on Variation of the External Torque in the DIII-D Tokamak