China has escalated efforts to repel foreign criticism of its policing, mass detentions and forced-assimilation measures targeting Muslims in the restive Xinjiang region, stepping up diplomacy and public-relations efforts.

Chinese diplomats have petitioned several governments in their capitals against attacking Beijing’s Xinjiang policies at the United Nations, according to diplomats briefed on the matter.

Beijing...