The Senate voted largely along party lines on Wednesday to reject a war powers resolution that sought to block further military action in Iran without congressional approval.