Bill de Blasio is almost guaranteed a second term as Mayor of New York City in this year’s fall election. Almost — unless a looming criminal investigation into fund-raising practices derails his candidacy and a party rival jumps into the breach.