US Senate Republicans on Thursday rejected legislation directing President Donald Trump ​to end the war in Iran or obtain ‌Congress’ approval to continue it, backing the president weeks after sweeping defeats in midterm elections largely tied to Americans’ frustration with the ​conflict.

The Senate voted 51 to 48, largely along ​party lines, to defeat a war powers resolution ⁠that had previously passed the House of Representatives.

Only three ​Republicans - Susan Collins of Maine, Lisa Murkowski of Alaska and ​Rand Paul of Kentucky - voted with Democrats in favor of the resolution. One Democrat, John Fetterman of Pennsylvania, voted with Republicans against ​it.