“Modernizing energy codes is one of the most cost-effective ways to improve energy efficiency in homes and businesses and make communities more resilient to extreme weather events,” the Energy Department said.