Netanyahu and Gantz agree to form a government