China imposed restrictions on exporting two metals that are crucial to parts of the semiconductor, telecommunications and electric-vehicle industries in an escalation of the country’s tit-for-tat...