Rep. Andy Ogles, R-Tenn., has accused the U.S. Supreme Court of betraying the nation and introduced legislation aimed at restricting birthright citizenship following a ruling against an executive order from former President Donald Trump.

The Supreme Court ruled against Trump's order, which sought to deny U.S. citizenship to children born on American soil to parents who were not U.S. citizens or legal permanent residents at the time of birth. The 14th Amendment states that "All persons born or naturalized in the United States, and subject to the jurisdiction thereof, are citizens of the United States and of the State wherein they reside."

Ogles criticized the Supreme Court's decision, stating that the court had "betrayed America." In a statement provided to Fox News Digital, he asserted that the ruling "cheapened the most valuable thing on planet Earth: U.S. citizenship." Ogles contended that birthright citizenship is "not clearly in the U.S. Constitution" and that the current system allows "foreign nationals to take advantage of our country, our benefits, and our generosity," alleging that some have been "trained by foreign governments to corrupt our culture."

He further stated, "I refuse to let these anchor babies colonize our country. Save our sovereignty. Anchors away!"

The proposed legislation, dubbed the "Anchors Away Act," would amend U.S. law to redefine the conditions under which a child born in the U.S. is considered subject to its jurisdiction. Under the bill, at least one parent must be a U.S. citizen or national, a lawful permanent resident whose residence is in the U.S., or an alien with lawful status performing active service in the armed forces.

The bill would also add a provision that renders inadmissible any nonimmigrant alien seeking to enter the U.S. while pregnant, unless married to a U.S. citizen. However, it includes an exception for those seeking legitimate medical treatment related to childbirth.

Trump's original executive order from last year aimed to establish a U.S. policy that no government department or agency would recognize U.S. citizenship for individuals whose mothers were unlawfully present in the U.S. and whose fathers were not U.S. citizens or lawful permanent residents at the time of birth, or for those born to mothers whose presence was lawful but temporary and whose fathers were not citizens or legal residents. President Donald Trump holds up fist while boarding Air Force One U.S. Supreme Court building