I have a vague memory of reading once that some railroad corps, to help make the job of laying railroad beds easier, would grant or sell land rights ahead of time so the settlers would soften the earth as they trekked out in advance. I'd love to find out if this is actually true or not or if I'm imagining it, because I think it's an interesting example of farmers being used in the service of capital development. Any help would be really appreciated!
Railroads have a lot of challenges when crossing new terrain, but unplowed prairie is not one of them. They had no need to "soften the earth." In the 19th century, railways could and did simply drop their wooden ties on the ground, and perhaps later add rock ballast on the roadbed to cushion the rails as they flexed under heavy locomotives, and secondarily, to control weeds within the roadbed. Any grading that was done was for elevation (to avoid steep slopes) or drainage.
Rail lines did often follow the traces and wagon roads that early pioneers and settlers had used—but that's merely a case of them following the logical route through a mountain pass, along a ridgeline, or next to a river. The same path might have been found through the landscape first by animals, then used by Indians, then widened and confirmed by settlers and wagon users, and finally built upon by railroads.