Migrants can shape immigration law by fighting it in court