6h vs 18h for a trip are two different universes. Sleeper trains are cool and all but a shorter ride is better.
I could see it for a 13 hour flight, maybe. Train tracks don't cross the Pacific, though.
An electric airliner is still unattainable. Synthesizing jet fuel using electricity is of course possible, but must be massively less efficient than using that electricity directly in electric motors with efficiency > 0.95 and recuperative braking.
The carbon footprint of building the railway, likely with massive amounts of concrete to use to support the rails, and the steel for the rails (to say nothing of maglev infrastructure) — that's going to be huge. Building a pair of airports should be much less expensive.