As recession fears grow, history shows tech’s strongest companies don’t retreat—they invest, using downturns to build and emerge ahead of competition.