Divided federal appeals court says Trump administration was wrong to terminate climate program