The law, one of the first aimed at curbing drag performances in front of children, had been on hold for nearly two months as the legal battle went on.