Putin, Ukraine And International Law

Many experts argued that international law has no teeth because the global community does not have an organized police force to enforce it. If it is so weak, why does it continued to be invoked by Zelensky, Putin and other stakeholders in the conflict between Russian and Ukraine?