Israel’s parliament on Monday passed a contentious law meant to retroactively legalize thousands of West Bank settlement homes built unlawfully on private Palestinian land, a step that is expected to trigger international outrage and a flurry of lawsuits.