China defends Pakistan against criticism by India, US