Federal judges, including those on the nation’s highest court, are likely to decide if state authorities can act to repel an illegal immigrant invasion.