How did the surprise attack on pearl harbor change the public's opinion about the war?