The fast-food chain is the latest high-profile brand to scale back its diversity goals amid a rocky legal landscape and pressure from conservative activists.