"Either we solve the problem as a country or we cancel the ban on new ICE from 2040."
Imposing some demand on the future is something that's becoming an increasingly popular thing with politicians. It appears that they're Doing Something but as they won't be the ones doing it (providing they set an explicit date far enough into the future) they're effectively saying it has to be someone else who does it.
In the real world we can only solve our immediate problems. We can look at what we might need further into the future. We can look at possible solutions. Until those possible solutions have been tested and we've found out which are practical and which aren't, and in what time-frame they can be made practical then we can't redesign the future.
Stuff only becomes the norm when it's technically and economically viable. The only things that legislation can practically do are clear obstacles and avoid being an obstacle itself.