UN ratifies first ever global arms treaty