(WASHINGTON) — Intense phone calls, ice cream and bipartisanship. The Congressional Baseball Game had it all as lawmakers of all stripes came together Wednesday night to enjoy a little of America’s favorite pastime: baseball.

The game came hours before a potential government shutdown and crucial infrastructure bill vote.

Though many lawmakers were at Washington National’s park ready to play ball, business was still booming on the Hill. Senate Majority Leader Chuck Schumer announced senators reached a deal to avert a government shutdown just hours before it would’ve taken effect. But it wasn’t game over for Democrats just yet.

On Thursday, lawmakers are set to vote on President Joe Biden’s widely-touted $1.2 trillion infrastructure bill. The White House has struggled to get moderates like Sens. Kyrsten Sinema, D-Ariz., and Joseph Manchin, D-W.Va., on board as well as other progressives who worry about social spending programs being cut from the bill as a result of those negotiations. If Thursday’s vote fails, it would be a big hit to Biden’s Build Back Better agenda, and it would highlight a lack of party consensus for Democrats ahead of the midterm elections.

So Wednesday’s game had more implications than just the usual bragging rights, and it showed, because big players came out, and not just to cheer on their colleagues.

After the first inning, the game paused. Then, Biden made his way out from behind home plate. At the same time, fans sitting in the Democratic fan section erupted into cheers while Republican fans booed the president and chanted for the game to resume.

Biden sat in the Democrats’ dugout for some time, talking with lawmakers. On multiple occasions, lawmakers handed the president their phones to either take photos with them or jump on calls. More than once he was seen looking intense while leaning on the railing of the dugout and talking on the phone.

But, it wasn’t all work. Biden handed out ice cream bars to both teams, complete with the presidential seal.

House Speaker Pelosi and second gentleman Doug Emhoff didn’t suit up to play, but they were in attendance, cheering on Democrats. Pelosi was also busy multitasking, watching the game while talking to several people on the phone. She spent most of the night busy with negotiations as Democrats go into crunch mode trying to get lawmakers on the same page ahead of Thursday’s infrastructure vote. Her palpable tension came after progressive Democrats on Tuesday warned Pelosi and other party leaders that without a deal on a broader social policy bill, they did not intend to support the bipartisan infrastructure bill.

Earlier in the evening Wednesday, Biden was inducted into the Congressional Baseball Hall of Fame. His granddaughter, Naomi Biden, accepted the award on his behalf, leading many to believe the president was caught up in infrastructure negotiations at the time.

And hopefully those negotiations went better off the field for Democrats than on the field. Republican lawmakers led for most of the night and ended up taking home the trophy, with a score of 13-12.

The Congressional Baseball game has been played since the early 1900s. It’s a chance for members of Congress to put aside their political differences on the Hill and instead take them to the mound. The game supports Washington, D.C., charities and philanthropies, which include The Washington Literacy Center, The Boys and Girls Club and the United States Capitol Police Memorial Fund.

Copyright © 2021, ABC Audio. All rights reserved.