Interestingly enough I have been running a Star Wars RPG game that led to a somewhat similar result.
So the PCs were sent on a mission to a planet by the Rebellion. A secret, undercover, sandbox campaign. One of my players journalled about it online if you want to read the craziness of it here.
https://yordano-searle.livejournal.com/However, the key result is that the research lab on this planet was developing the targeting system for the superlaser on the 2nd Death Star and the PCs prevented it from being completed on time.
So, in the climatic final battle when the Emperor reveals the "full operational" battle station, the superlaser misses!
That weakens Vader's belief in the Emperor. And in this version the Emperor looses his temper and unleashes force lightning on Luke, but Vader intervenes and blocks it. So it becomes a father and son battle vs the Emperor with the Emperor loosing.
Anakin survives and joins Luke to create a very different Jedi order. (No cradle robbing to train Jedi from birth. Using the old, "original" Jedi code, etc...)
We're now playing in a new campaign set a few years later in this same universe.