The harsh reality is that it genuinely doesn't matter what the UN declares. General Assembly resolutions are non-binding and are almost universally ignored.
The UN also is not the ultimate authority on international law. The countries subscribing to said international law are.