BEIJING—China may have poured billions into making its universities more globally competitive, but its idea of a quality education is guided more than ever by the Communist Party.

In a drumbeat that has accelerated ahead of October’s twice-a-decade Party Congress, President Xi Jinping’s campaign to rein in civil society, online media and speech has extended to the classroom.

Top...