THE HAGUE, Netherlands>> President Donald Trump met with Ukrainian leader Volodymyr Zelenskyy on the sidelines of the NATO summit Wednesday and suggested that increased spending by the trans-Atlantic alliance could help prevent future Russian aggression against its neighbors.

NATO members agreed to raise their spending targets by 2035 to 5% of gross domestic product annually on core defense requirements as well as defense- and security-related spending.

That target had been 2% of GDP.

“Europe stepping up to take more responsibility for security will help prevent future disasters like the horrible situation with Russia and Ukraine,” Trump said at the summit-ending news conference shortly after seeing Zelenskyy. “And hopefully we’re going to get that solved.”

Trump also reiterated his belief that Russian President Vladimir Putin wants to end the war in Ukraine that began with Moscow’s invasion in February 2022.

“He’d like to get out of this thing. It’s a mess for him,” Trump said. “He called the other day and he said, ‘Can I help you with Iran?’ I said, ‘No, you can help me with Russia.’ ”

Trump’s meeting with Zelenskyy was their first face-to-face session since April, when they met at St. Peter’s Basilica during Pope Francis’ funeral.

Trump also had a major confrontation with Zelenskyy this year at the White House.

Zelenskyy, on social media, said he discussed with Trump the possibility of Kyiv producing drones with American companies and buying U.S. air defense systems. “We can strengthen each other,” he wrote.

He said he also talked to Trump about “what is really happening on the ground.”

“Putin is definitely not winning,” Zelenskyy said.

Trump left open the possibility of sending Kyiv more U.S.-made Patriot air defense missile systems.

Asked by a Ukrainian reporter, who said that her husband was a Ukrainian soldier, Trump acknowledged that sending more Patriots would help the Ukrainian cause.

“They do want to have the antimissile missiles, OK, as they call them, the Patriots,” Trump said. “And we’re going to see if we can make some available. We need them, too. We’re supplying them to Israel, and they’re very effective, 100% effective. Hard to believe how effective. They do want that more than any other thing.”

Over the course of the war, the U.S. routinely has pressed for allies to provide air defense systems to Ukraine. But many are reluctant to give up the high-tech systems, particularly countries in Eastern Europe that also feel threatened by Russia.

Trump laid into the U.S. media throughout his news conference but showed unusual warmth toward the Ukrainian reporter.