Mecca, which hosts millions of pilgrims a year visiting Islam's most holy shrine, is working toward becoming the first city in Saudi Arabia to operate a utility-scale plant generating electricity from renewables.