WASHINGTON — President Barack Obama convened top military leaders on Wednesday for an evening at the White House at a time of deep uncertainty for the Pentagon, where the defense secretary is on his way out and the military faces tough questions about its strategy in the Middle East.