The commitment is part of the Clean Energy DC Omnibus Act of 2018, which also includes measures to reduce emissions from buildings and transportation.
The devolved government of Scotland announced on Tuesday its plans to ban new gasoline and diesel cars by 2032.
Salt Lake City has committed to transition to 100% renewable energy sources by 2032, as well as reduce carbon emissions citywide by 80% by 2040.