Gay marriage banned in three states; other ballot measures decided