It marked a setback for Donald Trump’s administration in the 193-member world body.