Meta and Microsoft shares have struggled for momentum over the past three months but rode improving market sentiment this week.