If I recall correctly, it was Hamilton, defending a loyalist in New York immediately after the Revolutionary War, who first argued that his client's guilt or innocence under the law which he was being charged was irrelevant because the law itself was unjust.
Hamilton won the case.
And that was several years prior to the Constitution.
Don't confuse the zealous advocacy of an arguing lawyer with the passion of a partisan. Hamilton also said the Bank of the U.S. was just hunky-dory, and the federal government should pay all the states' debts. No strict constructionist, he.