The Ravens won the
As you can see from this win probability chart, there was nearly a 99% chance of Baltimore winning when the score was 28-6. But then the power outage hit, and the Ravens fell apart.
The 49ers were actually favored to win at the two-minute warning. But the Ravens pulled out a goal-line stand for the ages (via AdvancedNFLStats):