Two civil rights groups have filed a lawsuit over the cancellation of an interfaith vigil to mark a year since the outbreak of Israel's war in Gaza.