US close day with gains amid easing war concerns