I’m pretty sure we agree. The head legal official, under whatever title, of a country or state should defend the laws enacted legitimately by the country’s or state’s legislature.
It goes back to the question from colonial times: does a representative represent only himself and his own whims, or does he represent those who elected him? What is his responsibility to his position?
Yes, we agree. Which means we are old fuddy duddys who believe this is a representative republic with rule of law instead of the fashionable new view that it’s a democracy with oligarchic office holders.