The American Petroleum Institute, the largest fossil-fuel lobby, is joining the call for pricing carbon as a way to lower U.S. emissions and slow global warming, a shift for the industry.