After an all-night debate, Knesset ratifies the controversial legislation, which bans Israelis from holding demonstrations more than 1 km (0.6 miles) from their homes; critics called the move a blow to democracy