I didn't really get how you defeating your enemies and Yes Man upgrading his software ends the game.. although i knew that it was gona do the "you beat it, main menu" thing.
But when i was playing i kept trying to think about how they were going to do it. I figured it would be like in the last game, where you have the choice to sacrifice yourself to save the many.
The way I would have done it:
During the battle something damages part of the dam. someone has to go down and shut something off or close something, or the entire dam will be lost and the people of NV will lose their electricity. The catch is, who ever you decide has to go down and close off the collapsing section, will most likely die. In the DLC, you wake up on the beach down river, and are met by the leaders of the factions that you chose to win the battle. You find out everything went how you wanted it to, and there are tons of super cool new quests to boot.