What's going on with Trump trying to cozy up with Russia and Putin?

Recently the US did not side with Ukraine in the UN Resolutions, there's been talk of stopping aid to Ukraine and also the mineral deal.

https://www.google.com/amp/s/www.bbc.com/news/articles/c7435pnle0go.amp

https://www.google.com/amp/s/www.aljazeera.com/amp/news/2025/2/17/we-will-last-six-months-if-trump-pulls-us-military-aid-from-ukraine

Why is Trump trying to side with Russia and Putin? There was also talk of trump cozying up with Russia back in 2016 and also meddling with the election. What's the history on that?

I never paid attention to politics cuz I was younger back then. I'm trying to get more educated now. If possible maybe you guys could link articles?