The leaders of China and Russia have commended increasingly close ties between their countries and decided to extend a 20-year-old friendship and cooperation treaty in a show of unity amid strained ties with the West.