A council has backtracked on a decision to put down a five-month-old puppy following a public outcry.