The ceasefire gave the president an opening. He used it to turn Iran’s strategy back on itself.