Updated from 3:05 p.m. EDTA report showing the U.S. economy was powering ahead with limited inflation before Hurricanes Katrina and Rita hit was just what the doctor ordered for a frazzled stock market. The third-quarter report on gross domestic product easily trumped the day's other news -- an indictment in the Bush administration. Stocks, which have struggled for three sessions, rallied. The Dow Jones Industrial Average closed up 171 points, or 1.7%, to 10,401. In a sign of newfound optimism, even Microsoft ( MSFT), whose revenue guidance disappointed overnight, gained 2.8%. The S&P 500 rose 19 points, or 1.6%, to 1198. Energy shares were also strong, even as crude oil prices dropped, after Chevron ( CVX) became the latest supermajor to report double-digit earnings growth. The Nasdaq Composite surged 26 points, or 1.3%, to 2090. Gateway ( GTW) shot up 5.5% after posting better-than-expected revenue in the third quarter. The various run-ups came even as a special prosecutor was unsealing a five-count indictment charging Vice President Dick Cheney's chief of staff, Lewis Libby, with lying to the federal grand jury probing the Valerie Plame affair. While Bush aide Karl Rove wasn't named, he reportedly remains under investigation. The charges capped a tough week for the president, coming a day after Harriet Miers withdrew her nomination to the Supreme Court. Some observers said all the bad political news for Bush contributed to nervousness that drove the Nasdaq down 1.7% on Thursday. According to Marc Pado, a Cantor Fitzgerald market strategist, traders are worried that Bush will be prevented from making his current tax cuts permanent. "With even Republicans breaking ranks with him in Congress, Bush has gone from 'lame duck' to 'dead duck' in the space of a week," Pado says. Whatever the fate of those, the market took heart in a catchphrase of Bush's predecessor Friday: "It's the economy, stupid." On that front, the news was good.