SANTA CLARA, Calif.—The Trump administration, alarmed that a brain drain to China may erode the U.S.’s technological edge and weaken national security, is trying to restrict Chinese ownership of some U.S. tech companies.

Meanwhile, China is tapping into American know-how another way: poaching talent.

China’s government and businesses are...