Of course things were great for White men when an entire part of the US population were kept out of opportunities by law. “Separate but Equal” was the law of the land from 1898 to the 1950s. As were laws against interracial marriage until 1969.
This isn’t de facto marginalization this was encoded into the law.