A federal judge has ruled that the Trump administration's actions to dismantle the Voice of America over the past year are illegal.