The far-right AfD, leading in some polls, has campaigned aggressively against immigrants in state elections in Thuringia, Saxony and Brandenburg. But those states also depend on immigrant labor.