Global spending on renewable energy is outpacing investment in electricity from coal, natural gas and nuclear power plants, driven by falling costs of producing wind and solar power.

More than half of the power-generating capacity added around the world in recent years has been in renewable sources such as wind and solar, according to the International Energy Agency.

In...