Neglected dogs get a second chance with help from NHS