Narrow vote is a diplomatic victory for Beijing, which has rejected criticism of its conduct as unfounded