Government lawyers do indeed represent the POTUS when called upon to do so.
More:
https://www.leagle.com/decision/2002219190fsupp2d291217
and there’s much, much more.