Luke’s entire reason for being a Jedi was because his father did it and it seemed like a good career path after his future in moisture farming went up in flames. It seems harsh, but there it is. In Empire, he realizes that his father actually wasn’t this great hero but a massive jerk who ruined Star Wars for everyone thirty years ago. By the end of the trilogy, Luke finally makes some peace with that. He boldly proclaims that he is not just a Jedi, but specifically ‘a Jedi like my father’. Basically, he sees in himself the same potential for failure and may even realize how the Jedi religion sets people up to fail, and he is okay with that. The trilogy ends with him being torn between two worlds - the world of his friends, and the world of his Jedi teachers who want him to spread their failed teachings throughout the universe. He tries to be the Jedi sage, and it predictably fails, to the ruin of both his friends and the Jedi. Now he’s master of exactly zero worlds, so I can totally see why he’d try to hunt down the Jedi texts and burn them. After all, in some ways this is ultimately the fault of the religion.
None of this is true at all, especially the part where you say he realizes the Jedi religion sets people up to fail. Luke was proud of becoming a Jedi by the end of the original trilogy. It was his character arc that he had been striving for over the course of three movies. Even by Return of the Jedi, when he had become exceedingly powerful, Yoda told him he was not a Jedi yet. He had one more task to finish. He confronted his father, and did not turn.
Luke was proud to become a Jedi. Good defeated evil.
All of this nonsense about the Jedi being bad is nonsense being created by people who don’t understand Star Wars and are just trying to do a money grab. It is heretical.
I’m not saying that he wasn’t proud to become a Jedi, but I’d say he was more defiant in the face of evil than proud of his accomplishment. Good does defeat evil, but it’s not the good of the Jedi religion, rather it’s the human decency in Luke and Vader that makes both of them realize that there are more powerful things in the universe besides the Jedi and the Sith. Because make no mistake; according to Yoda, Luke should have turned to the Dark Side when he attacked Vader in a rage. It wasn’t the Jedi teachings that saved Luke in that moment.