Hillary Clinton all-but ignored rival Bernie Sanders for months, hoping to avoid alienating his fervent backers whose support she’ll need if she wins the Democratic presidential nomination. Now, she no longer has that luxury.

As polls show Mr. Sanders ahead in New Hampshire and closing the gap in Iowa, Mrs. Clinton, her daughter and top campaign aides have unleashed a string of attacks on the Vermont senator’s policy agenda.

The...