what year did the us declare a war on spain?