The judgment is the final form of every cause of action, which is contested; and it is said that in every essential sense, the judgment is a contract, which is as much protected against impairment by subsequent legislation as is the original contract or cause of action, which by reduction to judgment becomes merged therein.