The defeat of President Trump’s chosen Senate candidate in Alabama amounted to a political lightning strike, setting the stage for a worsening Republican civil war that could have profound effects on next year’s midterm elections and undermine Trump’s clout with his core voters.