I don't think we passed a global ban on nuclear weapons or land mines.
Land mines mainly rip off limbs of children and framers so nobody really cares. I think it's terrible by the US that haven't joined the ban.
As far as nuclear weapons go, they haven't been banned but we have the non-proliferation treaty that worked to some degree. The use of nuclear weapons is also viewed as a line that after WW2 nobody has tried to cross.
https://en.wikipedia.org/wiki/Ottawa_Treaty 162 states have signed a land mine ban.
Non-signatories include the US, China, Russia, India, Pakistan, Israel and Iran. And Ukraine decided to withdraw from the treaty after being invaded by Russia.
So a ban with a lot of signatories, but not by any means universal.