Microsoft maintained its lead, but Apple is staging a comeback.
The new 7-year deal aims to lower overall health-related costs.
Amazon shares closed up more than 3 percent, pushing the e-commerce giant’s market capitalization to $796.8 billion.
The country has always depended on access to the best technology American companies make, Microsoft President Brad Smith said.
Apple’s market capitalization is now about $847 billion, compared to Microsoft's $851 billion.