Court could avoid ruling on gay marriage ban