États-Unis, la guerre intérieure