Labour has announced plans to outlaw the sale of new petrol and diesel lorries from 2040 as part of a mass push for net zero.