Tulsi Gabbard, a former Democratic congresswoman from Hawaii, had faced bipartisan scepticism about her suitability for overseeing the spy agencies.