Not long ago, New York Rep. Dan Goldman was a hero of the resistance. Now, he’s struggling to hold on to his seat in a hotly contested primary where Israel has dominated the conversation.

From lower Manhattan to brownstone Brooklyn, events 6,000 miles away are consuming a Democratic congressional race.