If the US just let China buy as many American chips as China wants, the US would have gotten dozens of billions of dollars. By blocking China the US gets a fraction of the money, and has accelerated Chinese chip design and manufacturing by many years.
China is building their own ASML too, top priority.