A New York federal judge ruled that the Trump administration violated employment protections by dismissing prosecutor Maurene Comey, ordering reinstatement and back pay as the Justice Department plans an appeal.