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 CrapoMichael (Mike) Dean CrapoLobbyist whose wife rented to Pruitt steps down Americans are set for relief from an Obama-era financial rule Watchdog files complaint GOP senator did not report fundraisers held at condo co-owned by lobbyist’s wife MORE (Idaho), Jim DeMint (S.C.), Ron JohnsonRonald (Ron) Harold JohnsonGOP senator: Congress needs ‘to move on’ from Russia probe GOP senator: ‘Way too early’ to talk about supporting Trump in 2020 IG report faults fired FBI official McCabe for leak to media MORE (Wisc.), Mike LeeMichael (Mike) Shumway LeeSenate confirms Trump’s pick to lead NASA Key senators warn Trump of North Korea effort on Syria Rep. Jordan: Action in Syria ‘should be debated in Congress’ MORE (Utah), Rand PaulRandal (Rand) Howard PaulGOP senator: Democratic opposition to Pompeo 'driven 100 percent by politics' Pompeo lacks votes for positive vote on panel CIA declassifies memo on nominee's handling of interrogation tapes MORE (Ky.), Pat Toomey (Pa), Jim RischJames (Jim) Elroy RischChanging the rules won't fix congressional dysfunction Senate approves .3 trillion spending bill, sending to Trump Overnight Health Care: FDA takes first step to cut nicotine levels in cigarettes | Trump's health chief backs official at center of abortion fight | Trump opioid plan will reportedly include death penalty for some drug dealers MORE (Idaho), and David VitterDavid Bruce VitterPlanned Parenthood targets judicial nominee over abortion comments Trump nominates wife of ex-Louisiana senator to be federal judge Where is due process in all the sexual harassment allegations? 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 CoburnThomas (Tom) Allen CoburnPension insolvency crisis only grows as Congress sits on its hands Paul Ryan should realize that federal earmarks are the currency of cronyism Republicans in Congress shouldn't try to bring back earmarks 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.