The House overwhelmingly approved legislation on Wednesday that will authorize highway funding through the summer.

Lawmakers voted 385-34, in favor of the bill, which funds federal highway programs through Oct. 29.

The highway funding bill now heads to the Senate, where both Republican and Democratic leaders said they expected it would pass "quickly" before leaving for the August break.

The three-month deal was a compromise between House and Senate lawmakers. In the Senate, lawmakers were pushing for the House to take up their bipartisan plan to authorize road construction projects for six years.

But House lawmakers said they wanted to write their own multi-year plan with the cost possibly covered by revenue from reforming the international tax code. Part of the deal allowing passage of the three-month extension requires the House and Senate to meet after the August recess to hammer out a joint deal for a multi-year plan.

Scrapping the Senate bill also means the Export-Import Bank won't be reauthorized at least until September. The Senate was pushing to include Ex-Im language in their highway bill, but House Republicans refused to consider that huge bill with just a few days left before leaving for home.

House Speaker John Boehner, R-Ohio, said Wednesday that even though pushing off a long-term highway funding negotiation until October means Congress will be left with a hefty agenda after the August break, he predicts "smooth sailing" in the fall.

Lawmakers also praised the deal for including a provision that will allow the Department of Veterans Affairs shift more than $3 billion in funds to bolster veterans healthcare. That language was added after Republicans in particular scolded the VA for only giving a month's notice that it was about to run out of money, and that veterans hospitals might have to close down in August.