Silicon Valley’s history of efforts to replace public services or make them more efficient has produced mixed results.