Beijing has restricted exports of critical minerals needed for key industries, including defence.