As soon as Mr. Biden hung up, Consultant Joe Neguse, Democrat of Colorado and a member of leadership, reached out to Ms. Murphy and the reasonable lawmakers to debate the main points of the assertion. He was quickly heading to Ms. Murphy’s workplace with a number of colleagues, together with Consultant Jimmy Gomez of California, who was beforehand tapped by Ms. Pelosi for negotiations; Consultant Mondaire Jones of New York, a freshman; and Mr. Pocan, a former head of the Progressive Caucus who as soon as accused some of the moderates of child abuse throughout a heated debate over border help.

After weeks of polarized conferences the place moderates and progressives have been hosted individually on the White Home, it was one of many few occasions when the factions had met collectively. Lawmakers hunched over a laptop computer in Ms. Murphy’s workplace to edit what would in the end be a 123-word assertion, debating the semantics, right down to the minute variations between phrases like “voting for” and “assist.” They haggled over whether or not to set a particular date for a vote to reassure progressives that the social coverage invoice wouldn’t be held up for lengthy, deciding on the week of Nov. 15.

“We act like we’re enemies and we’re not — we should always have been sitting down speaking to one another properly earlier than this,” mentioned Consultant Kathleen Rice, Democrat of New York and an in depth buddy of Ms. Murphy. “It got here to each of us saying that.”

Ms. Pelosi, who had staked her private fame on passage of each items of laws, stored tabs on the talks from afar, filling lawmakers’ voice mailboxes with stern messages exhorting them to get in line behind the infrastructure invoice and plucking updates from loyalists as they ducked out and in of personal conferences.

The shuttle diplomacy gained urgency because the day wore on. At one level, Consultant Sara Jacobs, a freshman Democrat from California, took off her sneakers to run by means of the marble hallways, ferrying messages between leaders and representatives huddling within the Longworth Home Workplace Constructing throughout the road. And in the end, the joint assertion — issued from private Twitter accounts — was sufficient to safe the votes wanted to go the infrastructure invoice the subsequent morning, and the social coverage measure earlier than Thanksgiving.

For the lawmakers who helped dealer the deal — a number of of whom are extensively seen as seemingly candidates to steer the celebration in years to return — it was a validation of their capacity to bridge inner divides, and a reminder that typically one of the best options come from the underside up.

“Going ahead,” Ms. Rice mentioned, “it’s going to be laborious for rank-and-file members to not be heard.”

Catie Edmondson contributed reporting.