The spending will be made over the next decade and comes as major economies invest billions to support clean energy projects and compete with China in manufacturing electric vehicles and semiconductors, seen as vital for prosperity and national security.