Japanese stocks saw their steepest monthly decline, led by a selloff in chip-related firms and concerns over Trump’s tariffs.