On 8 June, the US supreme court issued one of its most surprising decisions in recent memory.