The unprecedented attack by Iran on Israel early Sunday ratcheted up regional tensions, confirming long-held fears about the Israel-Hamas war spiraling into a broader conflagration. But Iran, Israel, the United States and Hamas also walked away with some gains.