Renewable energy may reap as much as two-thirds of the $7.7 trillion in investment forecast for building new power plants by 2030 as declining costs make it more competitive with fossil fuels.