The longest streak of U.S. factory hiring in a quarter century came to an unexpected end last month, and a clouded outlook for important manufacturing sectors like autos may impede a quick rebound, undermining a key plank of U.S. President Donald Trump’s economic agenda.