Democrats have done themselves a lot of harm by refusing to discriminate between those programs that are vital and those that are not.
Democrats refused to discriminate between programs, causing them harm.
The Democrats did not harm themselves.