A judge ruled that Donald Trump’s attempt to remove a government watchdog was unlawful, violating legal…