JERUSALEM — A cease-fire aimed at ending 11 days of withering combat between Israel and Hamas militants took effect early Friday, hours after Israel’s security cabinet voted to approve an Egyptian initiative to stop the fighting.