Mr. Ghailani was to be tried before a military commission for that and other war crimes committed afterward, but when the Obama administration elected to close Guantanamo, the existing indictment against Mr. Ghailani in New York apparently seemed to offer an attractive alternative.