The two tech giants reported weaker than expected results, sending warning signals about the state of the U.S. economy.