Republican House candidate Michael Grimm (N.Y.) waved off President Trump's endorsement of his primary opponent, Rep. Dan Donovan (R-N.Y.) on Wednesday, saying that Donovan has voted against Trump "every time it's mattered."

"All the endorsements in the world can’t change the facts: Donovan has failed to pass even one substantive bill into law, and has voted against President Trump Donald John TrumpOmar fires back at Trump over rally remarks: 'This is my country' Pelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Trump mocks Biden appearance, mask use ahead of first debate MORE every time it’s mattered – from failing to repeal Obamacare, to banning sanctuary cities, and even against tax cuts," Grimm tweeted.

All the endorsements in the world can’t change the facts: Donovan has failed to pass even one substantive bill into law, and has voted against President Trump every time it’s mattered - from failing to repeal Obamacare, to banning sanctuary cities, and even against tax cuts. — Michael Grimm (@RealMGrimm) May 30, 2018

Grimm's comment came minutes after Trump endorsed Donovan in pair of tweets touting the Staten Island Republican, saying there is "no one better to represent" New York's 11th District and suggesting that only Donovan could win the November election.

ADVERTISEMENT

"There is no one better to represent the people of N.Y. and Staten Island (a place I know very well) than @RepDanDonovan, who is strong on Borders & Crime, loves our Military & our Vets, voted for Tax Cuts and is helping me to Make America Great Again. Dan has my full endorsement!" Trump wrote in one tweet.

There is no one better to represent the people of N.Y. and Staten Island (a place I know very well) than @RepDanDonovan, who is strong on Borders & Crime, loves our Military & our Vets, voted for Tax Cuts and is helping me to Make America Great Again. Dan has my full endorsement! — Donald J. Trump (@realDonaldTrump) May 30, 2018

Contrary to Trump's claim, Donovan was among 12 Republicans to vote against the tax-cut package in December.

"Very importantly, @RepDanDonovan will win for the Republicans in November...and his opponent will not. Remember Alabama," he added, apparently referencing former Alabama Senate candidate Roy Moore Roy Stewart MooreVulnerable Senate Democrat urges unity: 'Not about what side of the aisle we're on' Sessions hits back at Trump days ahead of Alabama Senate runoff Judge allows Roy Moore lawsuit over Sacha Baron Cohen prank to proceed MORE, who was vanquished in December by Democrat Doug Jones. "We can’t take any chances on losing to a Nancy Pelosi Nancy PelosiPelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare House lawmakers reach deal to avert shutdown Centrist Democrats 'strongly considering' discharge petition on GOP PPP bill MORE controlled Democrat!"

Very importantly, @RepDanDonovan will win for the Republicans in November...and his opponent will not. Remember Alabama. We can’t take any chances on losing to a Nancy Pelosi controlled Democrat! — Donald J. Trump (@realDonaldTrump) May 30, 2018

Trump's endorsement followed one week after Donovan met with Trump and other GOP congressmen on a trip aboard Air Force One from Joint Base Andrews in Maryland to New York.

Donovan said he and two Long Island Republicans, Rep. Pete King Peter (Pete) KingTrump holds private funeral service for brother Robert Trump at White House Cheney clashes with Trump Coronavirus Report: The Hill's Steve Clemons interviews Rep. Sean Patrick Maloney MORE and Rep. Lee Zeldin Lee ZeldinDCCC reserves new ad buys in competitive districts, adds new members to 'Red to Blue' program Overnight Defense: House panel probes Pompeo's convention speech | UN council rejects US demand to restore Iran sanctions | Court rules against Pentagon policy slowing expedited citizenship The Hill's 12:30 Report: Republicans conduct in-person convention roll call MORE joined Trump to discuss the MS-13 gang at a lunch roundtable.

Trump's endorsement delivered a blow to Grimm, who has sought throughout his campaign to align himself closely with the president and to cast Donovan as an opponent of Trump.

Grimm and Donovan are set to face off in the district's Republican primary on June 26.

Grimm, who finished an eight-month prison sentence in 2016 after he was convicted of tax fraud, has repeatedly hammered Donovan for failing to side with Trump in a vote to repeal the Affordable Care Act and a vote slashing funding for so-called sanctuary cities.

Republicans, however, have widely backed Donovan in anticipation of a fierce Democratic challenge in the November midterm elections.