The president used his State of the Union speech to call for action on election security legislation, pressuring the G.O.P.