Why the same-sex marriage bill will end up in the High Court