John Kerry, the former secretary of state and longtime Senate Democrat, quipped Friday that he “finally” agreed on something with President Donald Trump — that Republican Rep. Thomas Massie of Kentucky was way out of line.

“Congressman Massie has tested positive for being an asshole,” tweeted Kerry, his party’s presidential nominee in 2004 and the owner of numerous Vietnam combat medals. “He’s given new meaning to the term #Masshole. (Finally, something the president and I can agree on!)”

Massie, who, in addition to his surname’s overlap, might qualify for that unflattering nickname for people from Massachusetts by virtue of having attended MIT, drew flak from across the political spectrum after saying he would call for a roll-call vote in the House for a $2 trillion stimulus package, potentially delaying passage of the measure.

House Speaker Nancy Pelosi had been counting on a relatively quick voice vote with “strong bipartisan” support, but Massie tweeted Friday that he planned to force House members to “vote on it by pushing ‘yes’ or ‘no’ or ‘present,’” as opposed to a voice vote or the unanimous consent that Pelosi aimed for earlier this week.

Massie then did exactly that, but there weren’t enough other lawmakers willing to second his request, so the House was able to approve the stimulus package by voice vote. Trump then signed the package into law on Friday afternoon. The Republican-led Senate unanimously passed it late Wednesday.

“I came here to make sure our republic doesn’t die by unanimous consent in an empty chamber, and I request a recorded vote,” Massie said on the House floor.

Trump, for his part, tweeted Friday that the Kentuckian is “a third rate Grandstander” who couldn’t stop the package but only delay it. The president suggested Massie should be thrown out of the Republican Party. In response to Kerry’s tweet, Trump said on Twitter that he “never knew John Kerry had such a good sense of humor! Very impressed!”

Massie, a libertarian-leaning conservative who has been called “Mr. No,” had said he objects to the huge package because of how much it adds to the national debt, but he could support it if the legislation were just about helping people get more unemployment benefits. He is known for moves such as casting the lone vote against a recent Hong Kong human-rights bill — and for clashing with Kerry during a hearing last year on climate change.

Other members of Congress were criticizing Massie for putting his fellow legislators at risk on Friday. Lawmakers had been forced to return to Washington, D.C., for the possible roll-call vote. Many lawmakers are seniors, a group viewed as at higher risk of becoming seriously ill or dying from the new coronavirus causing the disease COVID-19.

Republican Rep. Pete King of New York tweeted that there was “risk of infection and risk of legislation being delayed” because of “one Member of Congress refusing to allow emergency action.” King said it was “disgraceful” and “irresponsible.”

The Democratic-led House’s sergeant at arms warned lawmakers and their staffs in a letter Thursday to “maintain 6-foot social distance spacing as much as practicable” to fight the pandemic’s spread. “In the event of a recorded vote, Members will be notified. At such time, voting will be done alphabetically in groups of 30 Members over an extended period of time,” the letter said.