Tech stocks recover to push Wall Street to record close