Iran's loss of influence in Lebanon and Syria has helped to spark a shift in attitude among Arab leaders.