Trump's comments come as his administration files legal challenges to Democrat-led US states over election integrity.