The state topped the nation in a new economic ranking, just days after having its credit ranking downgraded for the first time in 17 years.