In absolutely no way did you fail your dog.  Everyone has financial limits and with the duration & pain meds not helping at all it is most likely that even if you had continued to pursue diagnoses & treatment, the outcome would have been the same.  Take solace in the fact that when faced with the very tough decision, you were brave enough to make the decision that was best for your dog instead of easiest on you.
 
Amanda