“Once we get electric planes” is such a handwavy statement. We are so far off getting anything close to an electric commercial passenger plane.
The environmental cost Of train infrastructure is also amortised over the lifetime of the infrastructure.
There are tunnels and bridges in the UK built in the 1800s which are still transporting trains in it today.