Combined market value of the two tech giants rose by more than $250bn after revenue growth beat expectations