You need to watch your back, and its probably best not to cite that as a reason for firing (permanent layoff). But as far as I know it isn’t illegal. There are specific reasons you cannot fire someone for such as race, religion, age, but political affiliation isn’t one of them.
"Due to current economic conditions, our inability to obtain commercial paper because of Dodd-Frank, and the additional cost of the Impending Obamacare legislation, our profit margins are severely strained. With all of these exogenous headwinds blowing upon us from the current administration, we are no longer a going forward organization with the current staffing levels, with that In mind, I regret to inform you. your services are no longer needed"....
In some states the only obama supporters are blacks. Firing all them at once = lawsuit.