Silicon Valley giants have transformed from asset-light cash machines to huge infrastructure investors