The technology giant says US tariffs will add around $900m to its costs this quarter.