The world’s most valuable company was dragged further into the U.S.-China trade war after Beijing’s top cybersecurity regulator urged big tech firms not to buy one of its newest chips.