Whoa, good question.

Legally, I suspect you're responsible for stopping and waiting as in a car, although this does vary some from state to state.

Realistically, if it was me, I'd probably do what you did and come to a stop, wait, then get fed up and ride through the red.