I don't think the UN really defines borders, its more what other countries recognize and various international law rules. At most the un security counil can declare a defacto change in border should not be recognized (usually to ensure that an act of agression isnt rewarded with territory) but its actually super rare for them to do that and they have only done it a few times