The Welsh government said it was "unavoidable" after controversial changes in the 2025 UK budget.