Yielding to political opposition, the Obama administration gave up on trying avowed Sept. 11 mastermind Khalid Sheik Mohammed and four alleged co-conspirators in civilian federal courts and said it would prosecute them instead before military commissions.