By what year was China beginning to lose its hold as sole legitimate government?