Microsoft, Apple battle to be most valuable United States company