A national ban on greyhound racing in Wales has been hailed as a major victory for animal welfare.