The president’s aides would have known in advance which world leaders would be at the podium when the president approached for his own remarks. But White House officials declined to offer any explanation of the handshake or confirm that there had been a discussion about whether to offer one.