Big money at stake in same-sex marriage ruling