WASHINGTON — In a major reversal, the Obama administration has decided to try Khalid Sheikh Mohammed for his role in the attacks of Sept. 11 before a military commission at Guantánamo Bay, Cuba, and not in a civilian courtroom.