Lawmakers debate deal on immigration to avoid another shutdown