He has spelled it out before--he believes that Ukrainians are really Russians, and therefore Ukraine should not exist as a separate country because why divide a nation in two.
What's the end game? What's the goals of the war? How does an invasion, that has to end at some point, stop Ukraine from joining NATO?
Even if Ukraine looses, Russia has no ability to force them to do anything. Russia wins - and then what?
You are right, nothing will guarantee that they never become a NATO member, but for some time is a plausible goal. Even just being in an active conflict prevents a NATO membership unless the rules are changed which is what Crimea and eastern Ukraine achieved since 2014.
Saying that this particular instance of territorial expansion has a self-defense motivation is, I think, implausible given the history.
Realistically, Ukraine was left with the choice of slowly losing territory to Russia, or joining NATO.
When I first researched this after the invasion started, I arrived at Russia reacting but I am open to being proven wrong.
Ukraine was absolutely not becoming a NATO member. Before Februrary, nobody considered that realistic possibility for decades, at least.
Ironically, thanks to Putin's war, Ukrainian NATO membership is starting to look more plausible (and Swedish/Finnish membership is virtually assured).
I believe Swedish/Finnish membership has been officially accepted by NATO. All that remains is collecting the official ratifications from the rest of NATO. (Currently, 8 of the 30 member states have yet to ratify it.)
And, given the importance of Russian oil and gas in the post-covid recovery period, the predictable reduction in nuclear capacity in France and Germany, the plausible lack of support from EU population and German industry for a cold winter, Putin's aging, etc... It might just be that the timing felt "as good as it will ever be".
Also, being on the "initiative" side gives your more positive outcomes. Best case was a flash invasion of Kiyv with public support. Next best case, a flash invasion without public support. That didn't pan out, but their next option is not terrible : grab as much territory as possible in Spring and Summer, then... Wait it out. General Winter will give Russia a pretty nice seat at the négociation table when EU citizens finally bail out.
Now, it's possible that we europeans stand the cold (or maybe, FSM willing, that winter is _not_ cold), that US weapons work, and that Putin contends with "I keep Crimea and some water, you join NATO, Dombass stays neutral." Sadly, that looks like the "best" plausible outcome to me - but who knows...
Whether that will count as a good outcome really depends on what follows: chaos and civil war could be terrible; a short caretaker government followed by the election of Alexei Navalny might be the best possible result.
Of course there was, Ukraine becoming a NATO member. Just read Putin's address [1] after the invasion started, it is spelled out in no uncertain terms. You may disagree whether this warrants are war but this does not change the fact that there is a reason and Russia consistently said so for decades.
[1] https://www.bloomberg.com/news/articles/2022-02-24/full-tran...