I think the 2040 date is optimistic at best .
battery vehicles way off mark of being real world usable and batteries one of most environment unfriendly products manufacture and recycle :-/
2040 would also just be a date of first stage of new public use vehicle fuel regulations and would be many years before petrol and diesel only found in collectors garage and history books .
Look at petrol and diesel usage in big picture and you can see it hardly likely ever disappear but more likely have fuel alternatives, can't see construction vehicles, plant vehicles, military vehicles haulage/delivery vehicles, garden machinery, generators etc and marine vehicles running on batteries lol .
Throw in world disasters, economy collapse and war before 2040 and I really wouldn't be too bothered on what the UK government of this moment is planning, can't even decide on brexit yet lol .