President Trump has launched a broad, governmentwide effort to take more control of state-run elections and sow doubt about the outcome.