The invasion by the Palestinian militants with the help of Iran revealed Tehran’s resurgent influence in the Middle East.