Members of the European Parliament have adopted a bill to fight Russian disinformation and election hacking.