Analysis of information sources in references of the Wikipedia article "Red Ribbon Army" in English language version.
The fight ends with Goku, Frieza, and Jiren all going out at once, leaving 17 the sole survivor in the ring. He's the one who gets to make the wish on the Super Dragon Balls and predictably, it's a wish to bring all of the deleted universes back to life. It's hardly a plot twist considering everybody in the audience assumed that's how this arc would end, but the episode succeeds in making it a sweet moment all the same, where we get to see all the fighters come back to life and return to their homes.