A confidential Federal Railroad Administration analysis, obtained by The Times, projects that building bridges, viaducts, trenches and track from Merced to Shafter could cost $9.5 billion to $10 billion, compared with the original budget of $6.4 billion.