I think they had good intentions behind them and may have been necessary from certain points of view, but there are questions about their legality and continue to be challenged and some overturned.
All policies have good intentions. Whether it's that nobody is the villain in their own story or that the worst tyrannies are those done for the sake of their victims, having good intentions really doesn't count for much.