Facebook and others filed 'friend c of the court' briefs saying same-sex marriage bans are bad for business.