The Defense Department’s top Asia official on Tuesday told Senate lawmakers that the war in Afghanistan will cost $45 billion this year.