How Silicon Valley giants are turning into war contractors