Ireland have completed a triple crown triumph over the other British Isles teams in the Six Nations with their hard-fought 27-18 win over improved Wales.