US tech giants remain valuable despite recent layoffs, can invest in promising areas like AI