Japan posts modest growth despite US tariffs