The Democratic Party has sued the Trump administration over an attempt to impose sweeping changes on the election systems.