US stocks boosted by gains in Microsoft, Meta