At first the United States tried to stay neutral, and by 1917, Woodrow Wilson created a policy about neutrality in the War and he announced that the U.S has to be neutral. One reason the U.S decided to enter, however, was because of the horrible doings of the Germans in Belgium, and the sinking of the Lusitania (a German submarine sunk the Lusitania filled with many English and American citizens) which is most popularly viewed as the reason for the United States getting involved.
Despite the immorality surrounding the event, America's decision to drop the Atomic Bombs on Hiroshima and Nagasaki during the latter years of World War II was justified, because it put a quick end to the war and saved thousands of American lives in the process.