A ban on greyhound racing will come into force “as soon as practicably possible”, a Welsh government minister has said.