The Pentagon’s ability to carry the fight to the Islamic State, al Qaeda and other terrorist groups around the world was on the line Wednesday as a key Senate committee struggled to define — and possibly limit — President Trump’s legal authority to wage war.