He was called a “giant gold Goliath” and a “rogue newcomer.” But in a few corners the remarks made by President Trump at the United Nations were described as “courageous” and “gratifying.”

Throughout the week, Mr. Trump’s first address to the General Assembly drew many direct and indirect swipes, from allies and rivals alike, and sparse support.

While the North Korean leader, Kim Jong-un, attacked Mr. Trump from afar — calling him a “dotard” in a statement on North Korean national television — others used their platforms at the United Nations to respond.