Renewed optimism around his companies has lifted the world’s richest person’s wealth, with gains in both stocks driving the rebound