How Angela Merkel’s great migrant gamble paid off