Actually he did. Obama told Putin to stop. Putin stopped.
Obama did not make a big noise about it because it might be seen as trying to influence the election.
The expulsions, confiscation of property, sanctions in response were punishment.
Who wanted to undo them within his first week of office? Why?