A divided federal appeals court ruled that the Trump-picked US Attorney in Albany is serving unlawfully and can no longer be involved in the investigation of one of the president’s top foes.