This obscure, now contentious law is being used to expel thousands of migrants