A Superior Court judge has temporarily halted the state’s enforcement of a new regulation barring nursing homes from having more than two patients in one room.