The Senate confirmed Brett Kavanaugh to the Supreme Court, likely cementing a conservative majority on the court for a generation and bringing to an end months of bitter partisan feuding marked by shocking allegations of sexual assault and vehement and angry denials from the nominee.