While it may not be a good idea to impeach Obama over this, they could impeach Clapper over it, as he is the one who petitioned the government to dismiss the case on the basis that the plaintiffs didn't have grounds as they could not demonstrate that they had been affected, or possibly against Solicitor General Donald Verrilli who made the argument in court. Coupled with his lies to Congress during hearings about whether the NSA collected data on Americans ("not wittingly"), Clapper would probably be the best target.
This is not so much an issue of immunity as of a requirement for the prosecution and defense to not be different parties.
> Seems like it would violate the concept of rule of law...
I would argue that the President being immune to prosecution for crimes committed while in office would be a bigger violation of the concept of rule of law than the President being subject to prosecution for such violations but only after leaving office.
This, of course, could be my ignorance. Certainly the only appearance of "immun" in the Constitution is in "immunities" in an unrelated context.
Which is not to say I think it's a good idea.