In Ableman v. Booth (1858) 62 U.S. 506, the United States Supreme Court held that state courts lack jurisdiction to issue writs of habeas corpus to order the production, or otherwise interfere, with prisoners in federal custody.
The federal interest in ensuring the safety and custody of a federal inmate outweighs the state's interest in effective law enforcement as it pertains to the immediate physical custody of the inmate.
In Ableman, the Supreme Court stated:
"No state judge or court, after they are judicially informed that the party is imprisoned under the authority of the United States, has any right to interfere with him, or to require him to be brought before them."
The Supreme Court said:
"We do not question the authority of state court, or judge, who is authorized by the laws of the state to issue the writ of habeas corpus, to issue it in any case where the party is imprisoned within its territorial limits, provided it does not appear, when the application is made, that the person imprisoned is in custody under the authority of the United States. The court or judge has a right to inquire, in this mode of proceeding, for what cause and by what authority the prisoner is confined within the territorial limits of the state sovereignty. And it is the duty of the marshal, or other person having the custody of the prisoner, to make known to the judge or court, by a proper return, the authority by which he holds him in custody. This right to inquire by process of habeas corpus, and the duty of the officer to make a return, grows, necessarily, out of the complex character of our government, and the existence of two distinct and separate sovereignties within the same territorial space, each of them restricted in its powers, and each within its sphere of action, prescribed by the Constitution of the United States, independent of the other. But, after the return is made, and the state judge or court judicially apprised that the party is in custody under the authority of the United States, they can proceed no further. They then know that the prisoner is within the dominion and jurisdiction of another government, and that neither the writ of habeas corpus, nor any other process issued under state authority, can pass over the line of division between the two sovereignties. He is then within the dominion and exclusive jurisdiction of the United States. If he has committed an offense against their laws, their tribunals alone can punish him. If he is wrongfully imprisoned, their judicial tribunals can release him and afford him redress. And although, as we have said, it is the duty of the marshal, or other person holding him, to make known, by a proper return, the authority under which he detains him, it is at the same time imperatively his duty to obey the process of the United States, to hold the prisoner in custody under it, and to refuse obedience to the mandate or process of any other government. And consequently it is his duty not to take the prisoner, nor suffer him to be taken, before a state judge or court upon a habeas corpus issued under state authority. No state judge or court, after they are judicially informed that the party is imprisoned under the authority of the United States, has any right to interfere with him, or to require him to be brought before them. And if the authority of a state, in the form of judicial process or otherwise, should attempt to control the marshal or other authorized officer or agent of the United States, in any respect, in the custody of his prisoner, it would be his duty to resist it, and to call to his aid any force that might be necessary to maintain the authority of law against illegal interference. No judicial process, whatever form it may assume, can have any lawful authority outside of the limits of the jurisdiction of the court or judge by whom it is issued; and an attempt to enforce it beyond these boundaries is nothing less than lawless violence."