Luke didn’t do anything. He’s a weak character. He hid on an island and abandoned his friends. He abandoned Han who was killed in the last movie. He didn’t help Rey at all. He suddenly adopted Prequel logic and believed the Jedi were bad. Luke turned into a passive, useless prequel character. Weak men are bad.
The one chance he had to do something good was burn the Jedi books, but Yoda is just better than him and did it first.