Beijing, where pollution averaged more than twice China’s national standard last year, will close the last of its four major coal-fired power plants next year.