Microsoft’s promises come after President Donald Trump focuses on affordability issues ahead of the 2026 midterm elections.