Senior White House and State Department officials resisted efforts by U.S. military leaders to prepare for the evacuation weeks before Kabul’s fall, placing American troops in greater danger, according to sworn testimony from commanders involved in the operation.