As passed by the Congress after McKinley delivered his war message to Congress, the declaration of war against Spain was modified by the Teller Amendment, which stipulated that

ASpain must abandon all claims to territories in the Western Hemisphere.
Bthe United States reserved the right to annex Cuba.
Ctrade with Spain would continue as usual.
Dthe United States wouldn't annex Cuba.