First of all, Israel is being criticized because their war is partly being bankrolled by US congress. North Korea also gets up to all sorts of monkey business but at least that bill is not on US tax payers.
Second of all, https://en.m.wikipedia.org/wiki/Whataboutism