The Senate voted 87-8 to pass the Federal Aviation Administration (FAA) authorization bill late Thursday evening.

The victory came after three weeks of controversy regarding the bill’s spending levels, collective bargaining rights for Transportation Security Administration (TSA) employees, and the number of long-distance flights allowed into an airport near Washington D.C.

All but eight senators were satisfied with the final product. Only Republican Sens. Mike CrapoMike CrapoLive coverage of Sessions confirmation hearing Senate rejects Paul's balanced budget Dems attack Trump SEC pick's ties to Wall Street MORE (Idaho), Jim DeMint (S.C.), Ron JohnsonRon JohnsonOvernight Healthcare: GOP governors defend Medicaid expansion GOP senator: Let's work with Dems to 'fix' ObamaCare Right renews push for term limits as Trump takes power MORE (Wisc.), Mike LeeMike LeeBooker is taking orders from corporate pharmaceuticals Paul, Lee call on Trump to work with Congress on foreign policy Right renews push for term limits as Trump takes power MORE (Utah), Rand PaulRand PaulDems blast Trump plans for deep spending cuts Trump team prepares dramatic cuts Paul, Lee call on Trump to work with Congress on foreign policy MORE (Ky.), Pat Toomey (Pa), Jim RischJim RischGOP senators avoid Trump questions on rigged election GOP to Obama: Sanction Chinese entities to get to North Korea Research: Infrastructure systems easy to hack, a little slow to patch MORE (Idaho), and David VitterDavid VitterLobbying World Bottom Line Republicans add three to Banking Committee MORE (La.) voted in opposition.

In the hour leading up to the final passage vote, the upper chamber considered a series of 12 amendments on issues germane to the underlying legislation.

One amendment that was designed to limit subsidized flights into rural airports was agreed to by a voice vote. Sen. Tom CoburnTom CoburnCoburn: Trump's tweets aren't presidential The road ahead for America’s highways Rethinking taxation MORE (R-Okla.) said he proposed the amendment as part of his sustained effort to decrease government spending. Another Coburn amendment with a similar objective subsequently failed.

Other amendments were also passed in the final hour including one that would mandate the reduction of helicopter noise in rural areas and one to protect and assist pilots who volunteer their services and equipment for the public benefit.

In the debate that meandered over three weeks and various subjects, it sometimes seemed senators had nearly forgotten the underlying non-controversial content of the bill. At its core the bill was designed to improve and modernize aviation infrastructure and fund security services.

About halfway through the final period of debate, Coburn, who held up the debate at various periods, reminded his colleagues why he had so vehemently objected to some measures.

The bill will now go to a conference with the House, where senators on relevant committees and leadership will try to hash out a compromise with their counterparts.