Trump administration officials failed to convince many US lawmakers on Wednesday that an imminent threat had justified the killing of a top Iranian military commander, and congressional Democrats scheduled a vote on legislation to rein in the president’s ability to wage war.