It’s Futurama, from the episode “Fry and the Slurm Factory”, which itself is a huge riff on Charlie and the Chocolate Factory.
Futurama riffs and nods to old Sci-Fi all the time, and this was just a nice throwaway for those of us old enough to know the source material.
Here’s the exchange in full:
Theresa May essentially did this while she was Home Secretary in the UK. It was the trigger of the whole “Windrush Scandal”, after it was revealed that the official paperwork of dozens hundreds of naturalised citizens was shredded without any record being made.
It caused people, most of whom were well into old-age to be deported, have their passports confiscated, and be denied access to healthcare services.