A US appeals court has set aside a ruling that found Iowa's ban on meatpackers owning livestock operations unconstitutional.