The law, American and international, says Pirates must be tried by an admiralty court.
In America that is a Federal District Court
congress passes laws all the time. so pass one.