McCain entered the race for the Republican nomination for president in 2000 but lost a heated primary season contest to Governor George W. Bush of Texas. He secured the Republican presidential nomination in 2008 but lost the general election to Barack Obama. McCain subsequently adopted more orthodox conservative stances and attitudes and largely opposed actions of the Obama administration, especially with regard to foreign policy matters. In 2015, he became Chairman of the Senate Armed Services Committee. He refused to support then-Republican presidential nominee Donald Trump in 2016; McCain won re-election to a sixth and final term that same year. McCain was a vocal critic of the Trump administration. While McCain opposed the Affordable Care Act, he cast the deciding vote against the ACA-repealing American Health Care Act of 2017. After being diagnosed with brain cancer (Glioblastoma) in 2017, he reduced his role in the Senate in order to focus on treatment, and supported the passage of the Tax Cuts and Jobs Act of 2017. He died on August 25, 2018 aged 81. Following his death, McCain lay in state in the Arizona State Capitol rotunda and then in the United States Capitol rotunda. His funeral was televised from the Washington National Cathedral, with the former presidents George W. Bush and Barack Obama giving eulogies.