Senator Chuck Schumer, the minority leader, said the program was aimed at counteracting potential efforts by the Trump administration to manipulate elections.
The president had a lengthy and angry exchange with Senator Bill Cassidy of Louisiana and lit into other Republicans who voted to check his war powers.