Johnson apologizes for gay marriage remarks