Of course they had a happy ending. The fact that, decades later, a new story was made up in which they later had an unhappy ending doesn’t change the way that RotJ, and the original Star Wars trilogy, ended; nor does it change the fact that they did end.