Migrants, mostly from Syria and Iraq, set out on foot along a highway on the Danish-German border, heading north to Sweden on Wednesday. They arrived that morning on a train from Germany.