JERUSALEM — Early on a cool autumn morning in 2023, from a tunnel beneath the Gaza Strip, Yahya Sinwar gave an order that sent thousands of Hamas fighters through the fence separating the territory from Israel. That green light has reordered the Middle East on a scale comparable to the Arab Spring or the carving up of the Ottoman Empire in the early 20th century — but not remotely in the ways Sinwar had in mind.