The Dutch government is spending billions to keep ASML in The Netherlands. To circumvent these prohibitions, the money doesn't go directly to ASML but is invested in better infrastructure, housing and education in the local area. More trains and busses to bring people to the company, better energy grid to power all the ASML offices, more money towards STEM studies of the local universities so they are creating the new ASML workforce, building extra homes so the company can hire more people.
Plus tax cuts for the employees of ASML, which is fully legal under EU legislation and prohibitions.