Where did you get the idea that Federal law only applies to federal territories and not states???? Break a federal law in the middle of the state you live in and you'll get to unlearn a few things in a federal prison! No state or territory may violate those rights enumerated in the U.S. Constitution.
The Articles of Confederation and Constitution for the United States of America grant the Congress of the United States power to establish certain courts and to create others by legislation.
The Constitution for the United States of America became effective when if was ratified by nine States on June 21, 1788. Congress enacted the first law on June 1, 1789 when eleven States had ratified the Constitution. The law passed by Congress and signed by the President of the United States was a law establishing an oath for the territorial government.
We know the oath was a territorial oath because it read: “I will support the Constitution of the United States.” The territorial President signed the legislation as required by Article I Section 7 Clause 2:
Every Bill which shall have passed the House of Representatives and the Senate, shall, before it becomes a Law, be presented to the President of the United States; If he approve he shall sign it, but if not he shall return it, with his Objections to that House in which it shall have originated, who shall enter the Objections at large on their Journal, and proceed to reconsider it.
The territorial status of all the federal courts is confirmed when the Judiciary Act of 1789 is examined. Section 2 divides the United States into thirteen districts:
SEC . 2. And be it further enacted, That the United States shall be, and they hereby are divided into thirteen districts, to be limited and called as follows, to wit: one to consist of that part of the State of Massachusetts which lies easterly of the State of New Hampshire, and to be called Maine District;
The date of enactment of the Judiciary Act of 1789 is September 24, 1789. The two districts which are not yet States are Kentucky and Maine. Kentucky is admitted to the Union on June 1, 1791 and Maine is admitted on March 15, 1820.
The Judiciary Act of 1789 is legislation, therefore, all the courts created by legislation are territorial courts since Congress has no legislative power outside federal territory.
All the federal courts are territorial and limited to the federal government and federal territory. This includes the U.S. Supreme Court and certainly all the United States district courts.
Do you need more help? Understanding the nature of jurisdiction is not hard to understand, but it does require that you read the material. This material is put out by the U.S. Government.
A good example would be a memory of where the Feds took Timothy McVeigh to charge him with a Federal crime in Oklahoma. They had to take him to Federal Territory to make the charges. They took him to a military base. This is by law Federal territory. This Federal Territory has not change in scope since 1947 as can be seen in title 28 U.S.C. Within ever state Federal Territory lies, Military bases, National Parks, Land for Federal Court houses. This is often mistakenly thought to be the Geographical boundaries of the U.S., nothing could be further from the truth. I challenge anyone to show me in law that I'm wrong. Your assumption means nothing to me. Show me in law that I'm wrong. I long ago gave up on what I think I know, for what I can prove in law. It makes not one wit of difference to me of what you think you know, prove me wrong!