The case was brought by Scottish independence campaigner Martin Keatings, who sought legal backing for a second referendum on the…