Rysslands stabschef Vladimir Putin kritiserade uteslutningen av idrottare från tävlingar som ett brott mot lagen.