What was originally conceived as a goodbye tour for Robert M. Gates instead offered a preview of the president-elect’s strategy.