a) Contributing financially to many religious institutions is explicitly financing groups who opposed gay marriage, and is an activity than many religious people undertake.
b) Advocating for something that in some views is unconstitutional is a constitutionally protected activity. The practice itself may be unconstitutional (I certainly think so), however, the political advocacy itself is not.