This is where I tend to disagree with both the cultural Left and Right. A for-profit business serves no purpose other than the maximize the financial returns of its owners. It serves no social purpose. It serves no cultural purpose. When you deviate from maximizing profits, you get into issues like this.
A
publicly traded for-profit business serves only to maximize profits. But if you own the joint, you can spend the proceeds on whatever cultural purpose you like as long as its otherwise legal.
The point in granting business religious freedom rights (see Hobby Lobby) isn't because the impersonal bundle of contracts has a conscience, it's because the people in it do.