CONCORD, N.H. — As Rick Santorum sprinted Thursday through New Hampshire, a state with fewer social conservatives than Iowa, his views on social issues like same-sex marriage were quickly challenged. A midday event in front of a gathering of college students here turned into a testy exchange in which Mr. Santorum compared allowing gay couples to marry to polygamy, apparently equating the two as equally undesirable. “If you’re not happy unless you’re married to five other people, is that O.K.?” he asked. The students booed Mr. Santorum during the 10-minute exchange and loudly booed when he left the room. The...