The UN is not an unbiased institution. It’s a representation of the viewpoints of countries, and it’s quite obvious that many member countries are biased to one side on the matter.
Countries get an equal vote regardless if they are corrupt dictatorships with abysmal human rights at home.