Reliability margins on New York’s grid are shrinking, the Independent System Operator said, just days after state lawmakers halted work on a bill designed to grow renewables.