The U.S. Defense Department will appeal a military judge's ruling that plea agreements struck by Khalid Sheikh Mohammed, the alleged mastermind of the Sept. 11, 2001 attacks, and two of his co-defendants are valid, a defense official said Saturday.