President Trump on Wednesday thanked King Abdullah II of Jordan for his country's acceptance of refugees just before the two leaders met privately for an expanded bilateral meeting in New York.

"I just want to thank you for everything you've done in terms of the refugees, taking care of people that, who knows what would happen without you," Trump told Abdullah.

Jordan has taken in hundreds of thousands of refugees from its neighbor, Syria, where political unrest and instability caused by terrorism has forced millions to flee their homes.

In his speech to the United Nations General Assembly on Tuesday, Trump made the case for refugees to be resettled near their home countries rather than transported to far-away places, arguing the cost is lower and the benefit to the refugee greater when resettlement is regional. Trump has been criticized for his own efforts to limit the U.S. intake of Syrian refugees.

The president touted the strength of the U.S. relationship with Jordan.

"I think never has the relationship been better than it is right now," Trump said. "We're working together on many problems, and some things that aren't problems, that are very, very good, and we're going to make some of the bad ones turn out good."