BEIJING—When the World Health Organization declared a global public-health emergency at the end of last month, it praised China’s “extraordinary” efforts to combat the coronavirus epidemic and urged other countries not to restrict travel.

“China is actually setting a new standard for outbreak response,” WHO Director-General Tedros Adhanom Ghebreyesus said.

Many...