So was Jon Snow brought back to life in Game of Thrones to kill Daenerys? To me it makes sense, I'm not sure if I missed something along the way. It also backs the point that Daenerys would do no good for the world as the queen of Westeros.
In the books it is yet to be discovered if he is brought back to life for what greater purpose. But one thing is for sure, it isn't just one thing he did, but many.
Probably in the books he is the one who kills the Night King, because it was clear from David Benioff's interview that they wanted to subvert expectations, they wanted someone who was not Jon to kill the Night King. So I think in the books he came back to life for also killing the NK.
He was brought back to do a lot of things if you start to see it that way, a chain of events that led to a lot of things.
Defeated Ramsay, showed the World that the dead are coming, prepared for the Long Night and battle of Winterfell. Successfully defeating NK would not have been possible without him.
What the Lord of Light could have wanted? Well, we don't even know what LoL was, didn't know what his intentions were, who were his enemy but one thing we know for sure, all victories inevitably came at a cost. To bring a new World, Jon Snow had to stab his love in the belly. So there we have the Azor Ahai theory jumping in, not totally similar but was a good deal.