Wall Street had its worst week since early April after President Trump said he would impose steep tariffs on E.U. goods and targeted Apple with a tax on foreign-made iPhones.