A federal court of appeals has ruled that the Environmental Protection Agency can regulate carbon emissions from vehicles and power plants. The court also upheld the agency’s scientific determination that greenhouse gases pose a danger to human health.