Stiglitz called for heavy public investment in infrastructure and education, and warned that climate change and AI would test the country hard.