Same-sex marriage ban challenged