Over the years, Ms. Gabbard’s straight, blunt talk about war and her independent streak when it comes to foreign policy have won her praise from the right and derision from the Democratic mainstream, all of which could cost her now.