More than 300 Foreign Office staff had raised concerns about potential UK “complicity” in Israel’s conduct in Gaza.