Along with contrary Republican's (contrary to working on something much more meaningful - remember, R's said they wanted HC reform too) they passed a very flawed bill. Republicans in their hate for Obama-anything fought tooth and nail to stop Obama making meaningful HC reform so that is how it was created - you remember "death panels" - "kill babies" - "taking away Medicare" all sorts of bull shit from the R's framing any HC reform.
And when the R's were asked to put up a HC bill of their own they produced a 3 1/2 page multi-spaced document that said what Trump says today - "we will offer better HC to make American lives better" with no policy or legislation ideas. In comparison, the ACA was thousands of pages.
So yeah, the D's have no business gloating over this other than to say, "it is legislation that would be far worse than anything that has ever been passed on HC before. In fact, the Ryan bill is anti-health care. Gloating - no one should be gloating but we should all be pointing out, the R's have no interest in creating meaningful laws and ideas for American's no matter the issue.