The COP28 summit in Dubai ended earlier Wednesday with a deal to transition away from using fossil fuels.