Xbox raised the prices of its consoles twice last year as it grappled with tariff-induced cost pressures, strong competition and uncertain spending.