In NY, the "Supreme Court" is actually the trial level court. Above that is the Court of Appeals. This was a trial court case.
Ex-boyfriend requested a red flag order for a woman, which was granted. Judge found that RKBA is a fundamental right, not subject to such action without due process, and simply filing a request doesn't make muster. He ruled that the required due process has to be on a par with the requirements for imprisoning someone.