There were scenes of jubilation for women’s campaigners outside the Supreme Court as the ruling was read out.