Brands engaged viewers with displays of corporate conscience, even at the risk of offending some customer groups.