Medicare was the key issue that led to a shocking win by a New York Democrat for a House seat long held by Republicans.