This doesn't seem like an unreasonable requirement for work attire. In a customer-facing role, they are representing the company and so the company is very concerned about it's image.
For non-customer facing roles, it's more about keeping the office productive and with minimal conflict. Someone walking in with a "Grab them by the pussy" shirt with a big picture of Trump's face is going to stir up some shit that the company would rather avoid.