Wales will appear at a major tournament for the first time after a nail-biting win over the Republic of Ireland in Dublin