Reid was elected to the United States Senate in 1986 and served in the Senate from 1987 to 2017. He served as the Senate Democratic Whip from 1999 to 2005 before succeeding Tom Daschle as Senate Minority Leader. The Democrats won control of the Senate after the 2006 United States Senate elections, and Reid became the Senate Majority Leader in 2007. He held that position for the final two years of George W. Bush's presidency and for the first six years of Barack Obama's presidency. As Majority Leader, Reid helped pass major legislation of the Obama administration, such as the Affordable Care Act, the Dodd–Frank Act, and the American Recovery and Reinvestment Act of 2009. In 2013, under Reid's leadership, the Senate Democratic majority controversially invoked the "nuclear option" to eliminate the 60-vote requirement to end a filibuster for presidential nominations, other than nominations to the U.S. Supreme Court. Republicans took control of the Senate following the 2014 United States Senate elections, and Reid served as Senate Minority Leader from 2015 until his retirement in 2017.