Only then , when the negotiations at the United Nations were going against Israel , did Prime Minister Ehud Olmert and Defense Minister Amir Peretz order the expanded ground operation , which had only been approved by the cabinet on Aug. 9 .