You say “the UN doesn’t work” apparently because “working” means it being a source of soft power for the US.
It had several remits, but its most important is probably the one to prevent a world war. It’s designed specifically as a talking shop to help countries find other ways of resolving disputes than kill people - and promote international understanding . It’s far from perfect, but in general it does a pretty good job.