The antecendent of "this" is "pandering". Grammatically the second sentence is "independent". It is an independent finite clause, and it is not subordinate to any other clause. An independent clause can contain pronouns, and these pronouns may have antecedents that are outside the clause. This does not make the clause dependent. Compare:
It sat on the mat. (Independent finite clause, and a complete sentence.)
that sat on the mat (could be a subordinate relative clause, not independent)
if it sat on the mat (Subordinate clause, with a subordinating conjuction "if")
So "Independent" does not mean "all pronouns refer to something in the same sentence". It means the clause is grammatically complete, as in the first example, but no the others.
"This demotivates the voters." (an example of an independent clause, and a complete sentence)
Removing the antecedent leaves a grammatical utterance but one that is semantically rather vacant. — Tᴚoɯɐuo