State funding will help bring the train back to life.