Appeals court allows removal of watchdog agency head as legal battle rages over Trump firing