Staten Island GOP secured a last-minute restraining order