The North Korea only launched its missile that failed after few seconds and never really hit Japan. United Nation gave them mandatory targeted sanctions.
Israel on the other hand not only launched several missiles but also destroyed airport, bridges and countless building on Lebanon. Not to mention a number of civilians being killed by the attack. Yet, UN never gave them any sanction at all.
The world at wars now. United Nation still remains as ineffective as ever.