He defeated Shimon Peres for the Labor Party leadership in elections Thursday , vowing to pull the party from Mr. Sharon 's fragile coalition government .