The "political stunt" theory sounds reasonable. There doesn't seem to be any other good reason for a law like that. I wonder how likely it is to backfire, though. If Russia gets enough hate from other countries and corporations, maybe it will start to affect trade and tourism to a noticeable degree.