Germany will spend €1 billion over four years to build charging stations for electric trucks, helping the country shift away from polluting diesel freight vehicles.