Enhancement of broadband entangled two-photon absorption by resonant spectral phase flips