McDonald's is scaling back its diversity, equity and inclusion efforts, and saying that a 2023 Supreme Court decision prompted the shift.