Wednesday’s opinion said the plaintiffs had not met a key test of showing that the Legislature acted with racial motivation.