How did the war affect Americas economic situation?