The automaker’s somber forecast for the fiscal year underscored how quickly fortunes had turned for many companies reckoning with President Trump’s tariffs.