House Speaker Paul Ryan on Thursday defended a tweet from that threatened the conservative House Freedom Caucus with political repercussions for blocking healthcare reform legislation.

"I understand the president's frustration," Ryan, R-Wis., told reporters who asked him about the tweet. "I share the frustration."

Trump tweeted Thursday morning that "we must fight," the Freedom Caucus in the 2018 elections "if they don't get on the team & fast."

The HFC comprised the majority of "no" votes that last week sunk a bill to repeal and replace Obamacare, a major campaign promise made by Republicans and Trump.

Ryan said House lawmakers are now close to working out a deal, but would not "put some kind of official deadline," on a second attempt at voting on a measure.

"It's very understandable that the president is frustrated that we haven't gotten to where we need to go because this is something we all said we would do," Ryan said. "So he is expressing his frustration. You all know he does that, in various forms, including Twitter and I understand his frustration."