They are alike insofar that they both deal with with people from minorities and and the discrimination against people who were not of European descent. In Mendez v. Westminster it was about Mexican American people while in the Magnuson Act it was about the Chinese American population and discrimination against them.
Two most important factors were the development of industry and industrialization, and the slave trade. People started accumulating large amounts of wealth due to these two and started investing them in businesses, both personal and by other people. This led to the development of capitalism not only in Europe, but other places too.
<span>It bought about the decline of the Federalist party</span>. Hope that helped