Who later confirmed that racial classifications were only to be upheld if they were necessary