The Senate voted Wednesday to confirm former Democratic Rep. Tulsi Gabbard as director of national intelligence, a major win for President Donald Trump as Gabbard had been among the most controversial of his Cabinet picks.

The vote was 52-48 mostly along party lines, though Republican Sen. Mitch McConnell of Kentucky joined Democrats in opposing the confirmation.