After you defeat Darth Vader and blast him through the wall into the Emperor's observation lounge, do not run toward the Emperor. Instead, jump down off the walkway. You will then have to defeat Darth Vader a second time, and doing so unlocks the Sith ending.