1908 SCOTUS: Adair v. United States 208 U.S. 161, "yellow dog" contracts are acceptable!
http://en.wikipedia.org/wiki/Adair_v._United_States
Adair v. United States, 208 U.S. 161 (1908), was a United States Supreme Court case in which the Court declared unconstitutional bans on "yellow-dog" contracts that forbade workers from joining labor unions. The decision reaffirmed the doctrine of freedom of contract which was first recognized by the Court in Allgeyer v. Louisiana (1897). For this reason, Adair is often seen as defining what has come to be known as the Lochner era, a period in American legal history in which the Supreme Court tended to invalidate legislation aimed at regulating business.[1][2]
In earlier cases, the Court had struck down state legislation limiting the freedom of contract by using the due process clause of the Fourteenth Amendment, which only applied to the states. In Adair the doctrine was expanded to include federal legislation by way of the due process clause of the Fifth Amendment.
The Court followed up the decision in Adair with Coppage v. Kansas (1915), which denied to states as well the power to ban yellow-dog contracts. In 1932, yellow-dog contracts were outlawed in the United States under the Norris-LaGuardia Act.
The anti-labor decision here:
https://www.law.cornell.edu/supremecourt/text/208/161