Appeals Court Rules Against President on Immigrant Policy