US federal court says the Trump-led initiative carries the risk of preventing valid voters from their constitutional right to democracy and tramples on Americans’ privacy.