Credit: AP/Luis M. Alvarez Judge rules head of watchdog agency must keep his job, says Trump’s bid to oust him was unlawful