The Senate has voted to confirm Tulsi Gabbard for President Donald Trump's pick as director of national intelligence.