The outcome of the election hinged on Florida, which had endured an extremely close presidential election. Over the ensuing five weeks, both campaigns waged an intense legal battle over election law as Florida conducted a recount. The Supreme Court of Florida unanimously upheld the recount, but the Bush team appealed to the Supreme Court of the United States. On December 12, in a 5-4 decision, the Supreme Court ordered an end to the recount, leaving Bush as the winner of Florida and the winner of the election. Bush became the fourth individual in U.S. history, and the first since 1888, to win the election despite losing the popular vote. Republicans also retained control of the House and the Senate, giving the party unified control of Congress and the presidency for the first time since the 1954 election. Despite the best looking and strong economy in years, Clinton's legacy was overshadowed by Gore's election loss in 2000, however Clinton still left office with 66% approval rating.