U.S. officials pushed to choke off China’s access to critical semiconductor technology after internal debates and tough negotiations with allies.