Justices across the ideological spectrum and lawyers on both sides agreed that an appeals court erred in requiring members of majority groups to meet a heightened burden.