You absolutely did the right thing. Dogs have no way to get help if humans don't step in. If those people aren't caring for the dogs why do they even want them.
That always boggles my mind. How can you say you love your dog and then neglect it. Why not take them to the animal shelter and drop them off.