A federal judge ruled Tuesday that the Trump administration’s firing of a federal employee appeals board member was unlawful.