As Tehran’s proxies take big blows, the two sides find common ground on need for ceasefire in Gaza and help for Syria.