Wow - You are utterly off base. Just because the act is illegitimate does not mean the act cannot be done.
Your view of the government means that the government literally cannot do any wrong. It is very close to elevating the government to the position of God.
Of course, holding a government is limited in its authority is the opposite of asserting that the government is G-d.
We are all familiar with cases where government officials act in excess of their legal authority, but I will offer a hypothetical: Legal authority is not extended to rape because an individual police officer commits rape. That would be giving the government G-d like powers. Rather, the police officer committing rape would be subject to prosecution for his crime, and his connection with the government would not be justification.