Russia has passed a law banning software that allows users to view internet sites barred in the country anonymously.