Australia’s largest electricity producer committed to close its coal-fired power plants within 35 years as part of an effort to cut the nation’s dependence on the fossil fuel.