The president called on Congress to pass voting rights legislation to stop what he calls an assault on democracy.