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 CrapoEx-Im faces new problems with Trump GOP debates going big on tax reform Top Banking Dem pushes back on Trump Dodd-Frank 'dismantle' MORE (Idaho), Jim DeMint (S.C.), Ron JohnsonRon JohnsonThe Hill's 12:30 Report Passing US-Canada preclearance would improve security and economy Overnight Finance: Trump expected to pick Steven Mnuchin for Treasury | Budget chair up for grabs | Trump team gets deal on Carrier jobs MORE (Wisc.), Mike LeeMike LeeWill Trump back women’s museum? Overnight Cybersecurity: Lawmakers pushing for vote to delay warrant rule changes Coons to call for voice vote to halt changes to hacking rule MORE (Utah), Rand PaulRand PaulGOP rep: Trump has 'extra-constitutional' view of presidency The ignored question: What does the future Republican Party look like? Rand Paul skeptical about Romney as secretary of State 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 VitterPoll: Republican holds 14-point lead in Louisiana Senate runoff Louisiana dishes last serving of political gumbo Trump tweets about flag burning, setting off a battle 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 CoburnWill Trump back women’s museum? Don't roll back ban on earmarks Ryan calls out GOP in anti-poverty fight 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.