Primary legislation refers to laws that are enacted by a legislative body, such as Congress, which serve as the foundational legal framework governing a country or territory. In the context of the Spanish-American War, primary legislation played a crucial role in establishing the legal parameters for American actions in foreign territories and influencing the nation's imperial ambitions.