Japan’s economy rebounds on brisk spending but trade rifts cloud outlook