'Deeply disturbing': New York Supreme Court justice rules protesters can be detained indefinitely