The battle of Midway stopped the eastward expansion of the Japanese empire during world war two, it destroyed a most of Japans aircraft carriers, and it stopped Japan from gaining a launching point to invade Hawaii.
The significance of the United States gaining control of Iwo Jima and Okinawa was that is provided a launching point for bombing the mainland, and it provided a launch point for the two atomic bombs to reach its targets.