Israel's opposition walks out as contested law passes