Judge rules zoo can stay open during shutdown