Like most such things, it's probably mostly symbolic, so politicians can say they're doing something in defiance of Russia (which is a very popular thing to do in Finland right now, or most of the west for that matter). I guess they'll back down on it when by 2032, everyone realizes it doesn't matter since wars will be fought with small autonomous drones and any railroad would be sabotaged in an instant.
What kind of ranges are you expecting from these small drones so logistics suddenly doesn’t matter? Even if something can hypothetically travel thousands of miles, designing disposable weapons with that kind of range has a real cost.
Sure, logistics matter. I'm sure Russian-gauge railroads in Finland would be mildly convenient for invading Sweden, provided you can first invade and utterly defeat Finland quickly enough that the railways survive.
But if Putin could do that (he can't), railway gauges would be the least of our worries.
As to railways surviving it’s relatively difficult to effectively destroy rail infrastructure. Making the call to cripple your internal infrastructure is tough especially in such a dire situation, it’s also a really large target. Taking out some strategic bridges is easier but most local issues can be quickly fixed when you talking million men armies.