The decision will effectively end the federal effort to regulate the largest industrial sources of greenhouse gases in the U.S.