Germany is challenging claims at the United Nations' top court that it is facilitating genocide in Gaza by supplying arms to Israel.