Importing gas from the US looks difficult given how polluting cargo ships are and the complete lack of capacity.
Importing gas even with the pollution associated with shipping it in is still better than burning lignite; which actually affects the health of lots of people in Germany and France (depending on winds). That's what they are trying to get rid off in the next eight years or so. Shutting down coal is the number 1 priority as it is by far the most polluting. If they could have done that with Russian gas that would have been better indeed. But that ship has sailed. Shutting down gas becomes the next priority after coal has been removed as a source of energy.
You keep on dragging in Trump. I'm not sure what your argument is other than that he did not do anything productive here other than promoting coal; which I would argue is indeed pure lunacy. Capacities can be scaled up if the price is right.
The mistake the Germans made, which they are now correcting, is over reliance on Russian gas to bridge the brief gap to energy neutrality. Though, in fairness, until Putin's melt-down last week, he could have saved that deal and kept on milking the Germans for billions for quite some time. Such melt-downs have not been seen in international politics since Trump reluctantly disappeared from it last year. You might say that Putin (whom Trump referred to as a 'genius' just last week) has trumped Trump in that respect.
Basically, the fix for Germany is importing expensive natural gas from the US and elsewhere as a stop gap solution while accelerating the move away from burning that to clean up the energy sector and lower cost.
That's what they just announced. 80% renewables eight years from now and 100% five years later. They are over 50% right now. Also, a recession is a great time to inject some capital into your economy. And of course the Germans have a healthy economy and low debt; unlike certain other countries. And of course they export a lot of their renewable tech to others; like the US.
Also, France and Germany have connected grids. So, with Germany producing lots of wind powrr and France providing nuclear base-load, both will be fine. No need for Germany to build nuclear plants. And no need for France to build a lot more plants either when they can import cheap German renewables to complement their expensive nuclear supply. The math to get rid of coal and natural gas in fifteen years actually adds up.