The measures are meant to punish Russia for actions that US officials say cut to the core of American democracy and to deter future acts.