The justices, split along ideological lines, found that Louisiana’s voting map was an unconstitutional racial gerrymander.