Yes, you were right. Unfortunately doing the right thing isn't always easy and doesn't always make you feel good, but in this case reporting your neighbor to the authorities was your only option once he refused to stop feeding the wild raccoons.
And really, if the raccoons had gone after your dog, it's not like he'd have paid the vet bill assuming your dog survived the experience.