The Court of Appeal has handed down a judgment in one of the first cases where the U.K. courts have had to determine EU law post-Brexit.