A total solar eclipse has crossed through North America, with large crowds gathering to see the phenomenon.