The vote highlights the growing divide between the party's foreign policy vision and Germany's traditional Western alliances.