Mr. Trump portrayed the U.S. electoral system as dangerously exposed and urged lawmakers to adopt new restrictions on voting, despite scant appetite for the measures even within his own Republican Party