The law wasnt debated. The state brought in a law by fiat and was obliterated by a lady called Edith Windsor. She legalised gay marriage by invoking her rights.
Legislature can introduce legislation. They dont make laws. Laws are discovered not mandated.