The world has enough rare earth minerals and other critical raw materials to switch from fossil fuels to renewable energy to produce electricity and limit global warming, according to a new study that counters concerns about the supply of such minerals.