Obama took executive action to expel 35 Russian diplomats, giving them 72 hours to leave, and shut down two Russian compounds that U.S. officials said are used to gather intelligence.