The incident underscores deep divisions over immigration policy inherited from previous governments.