The chief information officers of at least three major government agencies have been replaced by Silicon Valley executives, including from Palantir and Elon Musk's SpaceX.