After apparently contradictory statements on a gay-marriage measure, he cancels ‘moments before.”