Before the vote on Thursday, Democrats warned Republicans that they would pay a steep price in future elections if they followed through with plans to drastically change parts of the health law. “House Republicans are going to tattoo this moral monstrosity to their foreheads, and the American people will hold them accountable,” Representative Nancy Pelosi of California, the Democratic leader, said on Wednesday.

The brief chant on Thursday underscored the hostility and disagreement between Republicans and Democrats over the health bill. But it was not exactly novel.

When former President Barack Obama boarded his helicopter to leave Washington after President Trump’s inauguration in January, some enthusiastic Trump supporters belted, “Na, na, na, hey, hey, goodbye.” That moment echoed a nearly identical scene on Jan. 20, 2009, as former President George W. Bush’s helicopter ushered him away from the Capitol and into retirement.

Even in Congress, the anthem has been chanted going back at least a quarter century, including in 1993 when Republicans sang the chorus after Democrats voted to raise taxes under President Bill Clinton.