To some degree I understand this. When someone sues the government, the government's lawyers defend the government. They wouldn't be doing their jobs if they switched sides and agreed with the plaintiffs. Even if it concerns actions of a previous administration that were clearly wrong, the government's lawyers still have to look out for the government's interests and limit the damage of any potential judgment against it.
That doesn't change when you change presidents.