Most of the long-distance trains are diesel. If you read their full sustainability report [2] you can see that diesel fuel is their second largest cost, which means it’s also the primary source of energy.
Caltrain, for example, is still trying to raise funds for electrifying the system here in the Bay Area. It’ll soon be thirty years, since it was first proposed apparently [3].
[1] https://m.amtrak.com/h5/r/www.amtrak.com/travel-green
[2] https://www.amtrak.com/content/dam/projects/dotcom/english/p...
[3] https://en.m.wikipedia.org/wiki/Electrification_of_Caltrain