Not everyone supports gay marriage and not all opinions are deserving of the same amount of respect. It's OK for companies like Google to have the courage to have an opinion.
This is an issue of direct relevance to many of those that work at Google. I think it's fine for corporations to take a stand on social issues that directly affect their employees.
The problem isn't with companies having opinions, even political ones. There are opinions I disagree with, but am OK with companies having. And then there are opinions of a lower quality, like those that are hateful and based on superstition. To those, I object.
I think what we should understand is corporate tries really hard to be socially acceptable (some of the ways are marketing themselves as champions of women rights, equal opportunities, LGBT community supporters). It is up to them as to what stand they want to take on a matter. It would be even more courageous if they take the opposite stand on this particular matter precisely because people would howl, cry and do what not.