His comments, a week before Germany’s elections, seemed to specifically target efforts to sideline the hard-right Alternative for Germany.