Nvidia didn't break any laws. They sold to Chinese intermediaries, not directly to China. This was a loophole tacitly approved by the Trump administration, who care far more about stock prices than "National Security" (read: stoking anti-Chinese hatred).