Councils share bonus from sound investment