Trump, however, didn’t deny making the comment, and as Nigeria’s president, Muhammadu Buhari, chuckled, Trump said at a news conference Monday, “You do have some countries that are in very bad shape and very tough places to live in.”

One of the arguments challengers to the ban made at the court last week was that Trump intended the ban as a Muslim ban because of his rhetoric during the 2016 presidential campaign and showed no remorse for them.

Apologizing, Trump said, “wouldn’t make ten cents worth of difference.” Instead, he pivoted, calling U.S. laws “a disaster,” and saying the U.S. and those laws are laughed at all over the world “for their stupidity.”

Buhari, for his part, tried to walk a fine diplomatic line. (Trump also noted that the U.S. had sold military equipment to Nigeria and provided the country with “well over $1 billion in aid every year.”)

“I’m very careful,” Buhari said, adding, “I’m not sure about the validity or whether that allegation against the president was true or not, so the best thing for me is to keep quiet.”