Having beaten the game a few times, here's how it goes: push through to the final confrontation with Darth Vader, and then face off against the Emperor. Alternatively, you can slip past Vader and take him out directly. Hope that helps you finish it off!