I think the situation is a little more complicated than that. Electricity is a much cheaper fuel than diesel, and maintenance costs are lower for electric vehicles too, so in the long term electric buses may end up saving more money than they cost.
Add to that the fact that interest rates are very low right now, and it may even turn out that financing the electric buses and charging systems could allow cities to save money from day one, though I haven't crunched any numbers so this is admittedly just speculation on my part.