pander to something
pander to (something)
to accept or support something bad in order to get an advantage.
He is the worst sort of politician, who panders to fear to win votes.
Cambridge English Idioms Dictionary