The Knesset has voted to accept the government's natural gas deal by a majority of 59 MKs to 51 against.