There are only a couple of US states that have something along the lines of "or political beliefs" appended to their workplace discrimination laws. In most US states, it's perfectly legal to announce that you're firing all Democrats, effective immediately. In those couple of states you wouldn't want to announce that, though you could still lay them all off and dare them to try to prove it in court (very difficult unless you've explicitly announced).