A bitterly divided Senate cleared the way for Brett M. Kavanaugh to become the next Supreme Court justice as President Trump’s nominee secured the support of a handful of wavering senators in a tumultuous confirmation fight.