They also got to keep their new Ayatollah and continue with their religious government. An escalation of the war would have certainly ended with a complete regime change. Which would have been very expensive in life (Iranians) and money (Americans).