Japan has their own disagreements with China, don't think they would even if the US would allow it.
That's why government always step in with regulations, because corporations only care about selling to the highest bidder for profit no matter how that would affect national interests.
And today China is the most profitable county you can sell to if you're in the lithography business. Banning sales of equipment to China is something all lithography companies hate.
Of course the reality is that both the US and Japan are involved in chip restrictions, as both have to gain by restricting China's access to advanced technology.
https://www.ft.com/content/aad4f7b3-0a0f-46ca-9449-14fedce0e...
https://www.ft.com/content/3fa44901-33e4-4ab4-9f7b-efe1575a6...