Although the U.S. military discharged soldiers for homosexual acts throughout the eighteenth and nineteenth century, U.S. military law did not expressly prohibit homosexuality or homosexual conduct until February 4, 1921. On May 5, 1950, the Uniform Code of Military Justice was passed by Congress and signed into law by President Harry S. Truman, and became effective on May 31, 1951. Article 125 forbade sodomy among all military personnel, defining it as "any person subject to this chapter who engages in unnatural carnal copulation with another person of the same or opposite sex or with an animal is guilty of sodomy. Penetration, however slight, is sufficient to complete the offence." Application of Article 125 was severely limited by the 2003 U.S. Supreme Court decision in "Bowers v. Hardwick," and it was finally repealed on December 26, 2013, when President Barack Obama signed into law the National Defense Authorization Act for Fiscal Year 2014.