If they win, it isn't against the law. If they lose, it would be. To my knowledge, there has not been any major losing cases in court to which they have not complied with circuit or supreme court rulings.
But either way, none of this matters and doesn't change the fact, the majority of the IRS agents are not currently funded currently.