China backs Pakistan in protecting ‘legitimate rights’