Judge issues injunction on grazing rules