Amazon claimed the top spot on the new Fortune 500 list, ending Walmart's 13-year run as No. 1.