Walmart on Tuesday became the first retail company in the world to reach a market value of $1 trillion. The company reached the milestone after a strong rally in its shares over the past year.