It's not about upholding any given law or not. Appellate courts issue opinions about what 'the law' actually IS.
In common law, published appellate opinions interpreting law are customarily binding on future court cases within the same or subsidiary jurisdictions (and informative but not binding on others under the same national sysytem), through the doctrine commonly known as 'precedent'.
In civil law systems, such opinions are NOT binding.