A conservative backlash highlighted the challenge confronting corporations that are struggling to cater to both ends of America’s political and cultural poles.