Critics said the post, which showed the popular Transformers character facing off against “Mr. Singh,” stigmatized Sikhs, and Hasbro objected to the use of its brand.