Did they do the right thing? By engaging in the censorship of a large newspaper and at least one politician, the resulting streisand effect amplified the message far beyond what it would have gotten had they left it alone.
If the goal was to suppress disinformation, they failed miserably.
I think the goal was to minimize the impact of news without adequate sourcing on the US presidential election, and I think that goal was achieved. The conversation is about censorship and truth, not really Hunter Biden and Burisma.
Admittedly, there may be a cost to pay for that, and it's possible it was a long-term bad decision, but their goal seems to have been met.
That news is now being hosted directly by the house judiciary committee on a .gov site. I don't think they did a very good job of preventing the spread, nor do I think this would have happened had they just kept their hands off.