Laws aren't moral. These laws are bad, and shouldn't be enforced. They should be changed, but we don't have the political will to do so, so "rounding up all the brown people and shipping them to Mexico" is not the second-best option.
Change the laws.
Change the laws.