Two e-cigarette retail businesses had sought a temporary restraining order to block the law from taking effect on Jan. 1.