Gay rights ruling causes controversy