Scottish court has rejected case which argued that Prime Minister Boris Johnson’s Brexit deal was unlawful as it contravened tax legislation