Senate confirms McConnell ally to top federal appeals court