how does the un make treaty law