Cadence Design Systems Inc. pleaded guilty to charges accusing the company of violating US export controls by selling hardware and software to China’s National University of Defense Technology.