Maura Healey, a former state attorney general seeking a second term, has been an outspoken critic of President Trump.