The Pentagon will appeal a military judge’s ruling that plea agreements struck to avoid the death penalty for Khalid Sheikh Mohammed, the alleged mastermind of the 11 September 2001 terrorist attacks on the US, and two of his co-defendants are valid, a defense official said on Saturday.