Numbers have since declined sharply, but Merkel’s approach to the migrant crisis has provoked discord within her Christian Democratic Union, which has seen a string of poor state election results this year.