The situation has all the elements that the president seeks: a showdown with a top political rival in a deep blue state over an issue core to his agenda.